fix(Scripts/ZulGurub): Fixed Jindo's Brain Wash Totem. (#11839)

This commit is contained in:
UltraNix
2022-06-14 02:04:58 +02:00
committed by GitHub
parent 21705d76ad
commit d5221ae423
3 changed files with 21 additions and 1 deletions

View File

@@ -86,6 +86,23 @@ public:
Talk(SAY_AGGRO);
}
void JustSummoned(Creature* summon) override
{
BossAI::JustSummoned(summon);
switch (summon->GetEntry())
{
case NPC_BRAIN_WASH_TOTEM:
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1))
{
summon->CastSpell(target, summon->m_spells[0], true);
}
break;
default:
break;
}
}
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())

View File

@@ -61,7 +61,8 @@ enum CreatureIds
NPC_VILEBRANCH_SPEAKER = 11391, // Mandokir Event
NPC_CHAINED_SPIRIT = 15117, // Mandokir Event
NPC_HAKKAR = 14834,
NPC_ZULGURUB_TIGER = 11361
NPC_ZULGURUB_TIGER = 11361,
NPC_BRAIN_WASH_TOTEM = 15112
};
enum GameobjectIds