mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
19 lines
526 B
C++
19 lines
526 B
C++
#include "Playerbots.h"
|
|
#include "GundrakTriggers.h"
|
|
#include "AiObject.h"
|
|
#include "AiObjectContext.h"
|
|
|
|
bool SladranPoisonNovaTrigger::IsActive()
|
|
{
|
|
Unit* boss = AI_VALUE2(Unit*, "find target", "slad'ran");
|
|
if (!boss) { return false; }
|
|
|
|
return boss->HasUnitState(UNIT_STATE_CASTING) && boss->FindCurrentSpellBySpellId(SPELL_POISON_NOVA);
|
|
}
|
|
|
|
bool GaldarahWhirlingSlashTrigger::IsActive()
|
|
{
|
|
Unit* boss = AI_VALUE2(Unit*, "find target", "gal'darah");
|
|
return boss && boss->HasAura(SPELL_WHIRLING_SLASH);
|
|
}
|