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:
UltraNix
2022-08-10 04:24:25 +02:00
committed by GitHub
parent 8986421c71
commit f0afe611ff
2 changed files with 35 additions and 25 deletions

View File

@@ -36,19 +36,20 @@ enum Texts
enum Spells
{
SPELL_CURSE_OF_TONGUES = 25195,
SPELL_ENVELOPING_WINDS = 25189,
SPELL_WAR_STOMP = 25188,
SPELL_STRENGHT_OF_OSSIRIAN = 25176,
SPELL_SAND_STORM = 25160,
SPELL_SUMMON_CRYSTAL = 25192,
SPELL_CURSE_OF_TONGUES = 25195,
SPELL_ENVELOPING_WINDS = 25189,
SPELL_WAR_STOMP = 25188,
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,
SPELL_FROST_WEAKNESS = 25178,
SPELL_NATURE_WEAKNESS = 25180,
SPELL_ARCANE_WEAKNESS = 25181,
SPELL_SHADOW_WEAKNESS = 25183
SPELL_FIRE_WEAKNESS = 25177,
SPELL_FROST_WEAKNESS = 25178,
SPELL_NATURE_WEAKNESS = 25180,
SPELL_ARCANE_WEAKNESS = 25181,
SPELL_SHADOW_WEAKNESS = 25183
};
enum Actions
@@ -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())

View File

@@ -34,25 +34,27 @@ EndScriptData */
enum Spells
{
SPELL_MENDING_BUFF = 2147,
SPELL_MENDING_BUFF = 2147,
SPELL_KNOCK_BUFF = 21737,
SPELL_KNOCK = 25778,
SPELL_MANAB_BUFF = 812,
SPELL_MANAB = 25779,
SPELL_KNOCK_BUFF = 21737,
SPELL_KNOCK = 25778,
SPELL_MANAB_BUFF = 812,
SPELL_MANAB = 25779,
SPELL_REFLECTAF_BUFF = 13022,
SPELL_REFLECTSFr_BUFF = 19595,
SPELL_THORNS_BUFF = 25777,
SPELL_REFLECTAF_BUFF = 13022,
SPELL_REFLECTSFr_BUFF = 19595,
SPELL_THORNS_BUFF = 25777,
SPELL_THUNDER_BUFF = 2834,
SPELL_THUNDER = 8732,
SPELL_THUNDER_BUFF = 2834,
SPELL_THUNDER = 8732,
SPELL_MSTRIKE_BUFF = 9347,
SPELL_MSTRIKE = 24573,
SPELL_MSTRIKE_BUFF = 9347,
SPELL_MSTRIKE = 24573,
SPELL_STORM_BUFF = 2148,
SPELL_STORM = 26546
SPELL_STORM_BUFF = 2148,
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);
}
};
};