Scripts/TotFW: use the already defined Drain Power spell to reset the Conclave's power

This commit is contained in:
Ovahlord
2020-05-01 23:00:12 +02:00
parent 69e3d80f4a
commit e7347140d5

View File

@@ -227,6 +227,11 @@ struct boss_anshal : public BossAI
_isGatheringStrength = false;
}
void JustAppeared() override
{
DoCastSelf(SPELL_POWER_DRAIN);
}
void AttackStart(Unit* who) override
{
if (ConclaveHandler::IsTargetOnPlatform(me->GetHomePosition(), who))
@@ -470,6 +475,11 @@ struct boss_nezir : public BossAI
_isGatheringStrength = false;
}
void JustAppeared() override
{
DoCastSelf(SPELL_POWER_DRAIN);
}
void AttackStart(Unit* who) override
{
if (ConclaveHandler::IsTargetOnPlatform(me->GetHomePosition(), who))
@@ -699,6 +709,11 @@ struct boss_rohash : public BossAI
_isGatheringStrength = false;
}
void JustAppeared() override
{
DoCastSelf(SPELL_POWER_DRAIN);
}
void AttackStart(Unit* who) override
{
if (ConclaveHandler::IsTargetOnPlatform(me->GetHomePosition(), who))