fix(Scripts/ZulGurub): Fixed Jindo's Brain Wash Totem. (#11839)
This commit is contained in:
parent
21705d76ad
commit
d5221ae423
3 changed files with 21 additions and 1 deletions
|
|
@ -85,6 +85,8 @@ void Totem::InitStats(uint32 duration)
|
|||
|
||||
void Totem::InitSummon()
|
||||
{
|
||||
Minion::InitSummon();
|
||||
|
||||
if (m_type == TOTEM_PASSIVE && GetSpell())
|
||||
CastSpell(this, GetSpell(), true);
|
||||
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue