summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-28 15:48:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-28 15:48:12 +0000
commit39e69f42af53952d9679d92446f64806654674af (patch)
tree7d7f486f1421220adb06ea88ba8cc79cb19feb0c /src/map/battle.c
parent190793600675c03e76b527f12142d33f119d4f92 (diff)
downloadhercules-39e69f42af53952d9679d92446f64806654674af.tar.gz
hercules-39e69f42af53952d9679d92446f64806654674af.tar.bz2
hercules-39e69f42af53952d9679d92446f64806654674af.tar.xz
hercules-39e69f42af53952d9679d92446f64806654674af.zip
- Corrected the firewall/kaensin knockback code to how it is supposed to be done (the element/race check was originally in battle.c, and it was moved to skill.c because of the firewall hits on undead setting, now that it is not needed the code can be changed to how it was back then).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11594 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 8ec02ca77..bd6c5b32a 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2157,7 +2157,7 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
case MG_FIREWALL:
case NJ_KAENSIN:
ad.dmotion = 0; //No flinch animation.
- if(mflag) //mflag has a value when it was checked against an undead in skill.c [Skotlex]
+ if ( tstatus->def_ele == ELE_FIRE || battle_check_undead(tstatus->race, tstatus->def_ele) )
ad.blewcount = 0; //No knockback
break;
case PR_SANCTUARY: