summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-02-13 11:21:44 -0200
committershennetsind <ind@henn.et>2015-02-13 11:21:44 -0200
commit868a2b4ab50431e0d0a48927b40156d5a83d9d46 (patch)
tree76d555000b29adc5276b377390bfd4dbf7cf8031 /src/map/mob.c
parent00ca143b9f76620b7f68559bbdb4458e6936b639 (diff)
downloadhercules-868a2b4ab50431e0d0a48927b40156d5a83d9d46.tar.gz
hercules-868a2b4ab50431e0d0a48927b40156d5a83d9d46.tar.bz2
hercules-868a2b4ab50431e0d0a48927b40156d5a83d9d46.tar.xz
hercules-868a2b4ab50431e0d0a48927b40156d5a83d9d46.zip
Fixed alchemist marine sphere causing double deletion on renewal
Special Thanks to Haruna, Michieru.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index d8898619c..a94650438 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2074,11 +2074,6 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage) {
}
}
#endif
-
- if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]
- md->state.alchemist = 1;
- mob->skill_use(md, timer->gettick(), MSC_ALCHEMIST);
- }
}
/*==========================================
@@ -3307,6 +3302,11 @@ int mobskill_event(struct mob_data *md, struct block_list *src, int64 tick, int
if(md->bl.prev == NULL || md->status.hp <= 0)
return 0;
+ if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]
+ md->state.alchemist = 1;
+ return mob->skill_use(md, timer->gettick(), MSC_ALCHEMIST);
+ }
+
target_id = md->target_id;
if (!target_id || battle_config.mob_changetarget_byskill)
md->target_id = src->id;