Fixes Alchemist Marine Sphere being triggered more than once (#5723)
Fixes Alchemist Marine Sphere being triggered more than once Fixed the skills being cancelable
This commit is contained in:
@@ -714,8 +714,8 @@
|
||||
1141,Marina@NPC_CRITICALSLASH,attack,170,1,500,500,5000,no,target,always,0,,,,,,6,
|
||||
1141,Marina@NPC_EMOTION,walk,197,1,2000,0,5000,yes,self,always,0,19,,,,,,
|
||||
1141,Marina@NPC_WATERATTACK,attack,184,2,500,500,5000,no,target,always,0,,,,,,6,
|
||||
1142,Marine Sphere@NPC_RANDOMMOVE,idle,331,1,10000,0,30000,yes,target,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3000,0,yes,self,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_RANDOMMOVE,idle,331,1,10000,0,30000,no,target,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3000,0,no,self,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,500,2000,5000,no,self,myhpltmaxrate,99,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,2000,5000,no,self,skillused,173,,,,,,,
|
||||
1142,Marine Sphere@NPC_SPEEDUP,idle,332,1,10000,0,700,yes,target,always,,,,,,,,
|
||||
|
||||
@@ -714,8 +714,8 @@
|
||||
1141,Marina@NPC_CRITICALSLASH,attack,170,1,500,500,5000,no,target,always,0,,,,,,6,
|
||||
1141,Marina@NPC_EMOTION,walk,197,1,2000,0,5000,yes,self,always,0,19,,,,,,
|
||||
1141,Marina@NPC_WATERATTACK,attack,184,2,500,500,5000,no,target,always,0,,,,,,6,
|
||||
1142,Marine Sphere@NPC_RANDOMMOVE,idle,331,1,10000,0,30000,yes,target,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3000,0,yes,self,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_RANDOMMOVE,idle,331,1,10000,0,30000,no,target,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,3000,0,no,self,alchemist,,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,500,2000,5000,no,self,myhpltmaxrate,99,,,,,,,
|
||||
1142,Marine Sphere@NPC_SELFDESTRUCTION,idle,173,1,10000,2000,5000,no,self,skillused,173,,,,,,,
|
||||
1142,Marine Sphere@NPC_SPEEDUP,idle,332,1,10000,0,700,yes,target,always,,,,,,,,
|
||||
|
||||
@@ -2458,6 +2458,12 @@ void mob_log_damage(struct mob_data *md, struct block_list *src, int damage)
|
||||
//Call when a mob has received damage.
|
||||
void mob_damage(struct mob_data *md, struct block_list *src, int damage)
|
||||
{
|
||||
if( src != nullptr && md->special_state.ai == AI_SPHERE && !md->dmglog[0].id ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]
|
||||
md->state.alchemist = 1;
|
||||
mobskill_use(md, gettick(), MSC_ALCHEMIST);
|
||||
unit_escape(&md->bl, src, 7, 2);
|
||||
}
|
||||
|
||||
if (src && damage > 0) { //Store total damage...
|
||||
if (UINT_MAX - (unsigned int)damage > md->tdmg)
|
||||
md->tdmg += damage;
|
||||
@@ -2487,15 +2493,6 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!src)
|
||||
return;
|
||||
|
||||
if( md->special_state.ai == AI_SPHERE ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]
|
||||
md->state.alchemist = 1;
|
||||
mobskill_use(md, gettick(), MSC_ALCHEMIST);
|
||||
unit_escape(&md->bl, src, 7, 2);
|
||||
}
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
|
||||
Reference in New Issue
Block a user