mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-06 04:23:47 +00:00
fix(Scripts/ShadeOfAran): Make immune to Mind-numbing and Cure of Tongue (#19309)
* closes https://github.com/chromiecraft/chromiecraft/issues/6900
This commit is contained in:
@@ -73,7 +73,11 @@ enum Spells
|
|||||||
|
|
||||||
SPELL_SHADOW_PYRO = 29978,
|
SPELL_SHADOW_PYRO = 29978,
|
||||||
|
|
||||||
SPELL_ATIESH_VISUAL = 31796
|
SPELL_ATIESH_VISUAL = 31796,
|
||||||
|
|
||||||
|
SPELL_CURSE_OF_TONGUE_RANK1 = 1714,
|
||||||
|
SPELL_CURSE_OF_TONGUE_RANK2 = 11719,
|
||||||
|
SPELL_MIND_NUMBING_POISON = 5760
|
||||||
};
|
};
|
||||||
|
|
||||||
enum Creatures
|
enum Creatures
|
||||||
@@ -100,6 +104,8 @@ enum Misc
|
|||||||
|
|
||||||
Position const roomCenter = {-11158.f, -1920.f};
|
Position const roomCenter = {-11158.f, -1920.f};
|
||||||
|
|
||||||
|
std::vector<uint32> immuneSpells = { SPELL_CURSE_OF_TONGUE_RANK1, SPELL_CURSE_OF_TONGUE_RANK2, SPELL_MIND_NUMBING_POISON };
|
||||||
|
|
||||||
struct boss_shade_of_aran : public BossAI
|
struct boss_shade_of_aran : public BossAI
|
||||||
{
|
{
|
||||||
boss_shade_of_aran(Creature* creature) : BossAI(creature, DATA_ARAN), _atieshReaction(false) { }
|
boss_shade_of_aran(Creature* creature) : BossAI(creature, DATA_ARAN), _atieshReaction(false) { }
|
||||||
@@ -118,6 +124,9 @@ struct boss_shade_of_aran : public BossAI
|
|||||||
_drinking = false;
|
_drinking = false;
|
||||||
_hasDrunk = false;
|
_hasDrunk = false;
|
||||||
|
|
||||||
|
for (int i = 0; i < immuneSpells.size(); i++)
|
||||||
|
me->ApplySpellImmune(0, IMMUNITY_ID, immuneSpells[i], true);
|
||||||
|
|
||||||
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
if (GameObject* libraryDoor = instance->instance->GetGameObject(instance->GetGuidData(DATA_GO_LIBRARY_DOOR)))
|
||||||
{
|
{
|
||||||
libraryDoor->SetGoState(GO_STATE_ACTIVE);
|
libraryDoor->SetGoState(GO_STATE_ACTIVE);
|
||||||
|
|||||||
Reference in New Issue
Block a user