fix(Scripts/AhnQiraj): Anubisath Sentinel and Anubisath Guardian shou… (#12656)
fix(Scripts/AhnQiraj): Anubisath Sentinel and Anubisath Guardian should spawn Small Obsidian Chunk on death. Fixes #12474
This commit is contained in:
@@ -42,6 +42,7 @@ enum Spells
|
||||
SPELL_STRENGHT_OF_OSSIRIAN = 25176,
|
||||
SPELL_SAND_STORM = 25160,
|
||||
SPELL_SUMMON_CRYSTAL = 25192,
|
||||
SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK = 27627, // Server-side
|
||||
|
||||
// Crystal
|
||||
SPELL_FIRE_WEAKNESS = 25177,
|
||||
@@ -347,6 +348,11 @@ struct npc_anubisath_guardian : public ScriptedAI
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
DoCastSelf(SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK, true);
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
|
||||
@@ -52,7 +52,9 @@ enum Spells
|
||||
SPELL_MSTRIKE = 24573,
|
||||
|
||||
SPELL_STORM_BUFF = 2148,
|
||||
SPELL_STORM = 26546
|
||||
SPELL_STORM = 26546,
|
||||
|
||||
SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK = 27627 // Server-side
|
||||
};
|
||||
|
||||
class npc_anubisath_sentinel : public CreatureScript
|
||||
@@ -273,6 +275,8 @@ public:
|
||||
sent->ModifyHealth(int32(sent->CountPctFromMaxHealth(50)));
|
||||
CAST_AI(aqsentinelAI, sent->AI())->GainSentinelAbility(ability);
|
||||
}
|
||||
|
||||
DoCastSelf(SPELL_SUMMON_SMALL_OBSIDIAN_CHUNK, true);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user