summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-03-12 23:02:27 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-03-12 23:02:27 +0800
commit8c4f8822d7f60b3caa63835d173819f28562ca3b (patch)
treeb2087788d3be6ce741b9e8cb47d6c699ae8a7cac /src/map/skill.c
parent4d73c2ef61ae3364b6b9f80f85f49d39399f0b42 (diff)
downloadhercules-8c4f8822d7f60b3caa63835d173819f28562ca3b.tar.gz
hercules-8c4f8822d7f60b3caa63835d173819f28562ca3b.tar.bz2
hercules-8c4f8822d7f60b3caa63835d173819f28562ca3b.tar.xz
hercules-8c4f8822d7f60b3caa63835d173819f28562ca3b.zip
Fixed Bug#8546
-http://hercules.ws/board/tracker/issue-8546-reflect-kaite-magic-rod-bug-fix-please/?gopid=24609#entry24609 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 88ca45ae5..19b3cb691 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2213,7 +2213,8 @@ int skill_attack(int attack_type, struct block_list* src, struct block_list *dsr
}
}
- if( dmg.flag&BF_MAGIC && ( (battle_config.eq_single_target_reflectable && (flag&0xFFF) == 1) ) ) {
+ if( dmg.flag&BF_MAGIC
+ && (skill_id != NPC_EARTHQUAKE || (battle_config.eq_single_target_reflectable && (flag & 0xFFF) == 1)) ) { /* Need more info cause NPC_EARTHQUAKE is ground type */
// Earthquake on multiple targets is not counted as a target skill. [Inkfish]
if( (dmg.damage || dmg.damage2) && (type = skill->magic_reflect(src, bl, src==dsrc)) ) {
//Magic reflection, switch caster/target