ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/attack.C
(Generate patch)

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.108 by root, Tue May 5 04:51:56 2009 UTC vs.
Revision 1.109 by elmex, Fri Aug 28 22:40:41 2009 UTC

823 if (hitdam <= 0) 823 if (hitdam <= 0)
824 hitdam = 1; 824 hitdam = 1;
825 825
826 type = hitter->attacktype; 826 type = hitter->attacktype;
827 827
828 /* Ok, because some of the brainfucks of the good *sigh* old *sigh*
829 * Crossfire we have to default the attacktype here to AT_PHYSICAL.
830 * This check is important for the most simple monsters out there in the
831 * game content (maps, archs). For example orcs: They would have
832 * no attacktype at all.
833 *
834 * Some time in the future someone should just go into the game data
835 * and fix every monster out there ;-/ Until then we will kill some
836 * more trees in the african rain forests with this check.
837 */
828 if (!type) 838 if (!type)
829 type = AT_PHYSICAL; 839 type = AT_PHYSICAL;
830 840
831 /* Handle monsters that hit back */ 841 /* Handle monsters that hit back */
832 if (!simple_attack && QUERY_FLAG (op, FLAG_HITBACK) && QUERY_FLAG (hitter, FLAG_ALIVE)) 842 if (!simple_attack && QUERY_FLAG (op, FLAG_HITBACK) && QUERY_FLAG (hitter, FLAG_ALIVE))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines