summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2015-05-28 03:19:35 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2015-05-28 03:19:35 +0800
commit4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0 (patch)
tree1c41eb17c2e435ddaabe5acea3f0328e94b99508 /src/map
parent4cca156a2bffbe9b41d228da33393945de9dea4c (diff)
downloadhercules-4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0.tar.gz
hercules-4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0.tar.bz2
hercules-4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0.tar.xz
hercules-4c469ea8b9e419535dfcc4c2cbe45623b95e2fd0.zip
Fixed Bug#8694
-http://hercules.ws/board/tracker/issue-8694-npc-earthquake-wrong-type/?gopid=25380#entry25380 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 7a2967ceb..3b030a5d0 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4343,6 +4343,10 @@ struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list
if( tsc && (tsc->data[SC_WUGBITE] || tsc->data[SC_ANKLESNARE] || tsc->data[SC_ELECTRICSHOCKER]) )
wd.div_ = tstatus->size + 2 + ( (rnd()%100 < 50-tstatus->size*10) ? 1 : 0 );
break;
+
+ case NPC_EARTHQUAKE:
+ wd.flag = (wd.flag&~(BF_WEAPON)) | BF_MAGIC;
+ break;
#ifdef RENEWAL
case MO_EXTREMITYFIST:
case GS_PIERCINGSHOT: