mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-18 17:44:36 +00:00
- Added Auriaya fall from floor protection (#1318)
This commit is contained in:
@@ -487,6 +487,17 @@ bool KologarnCrunchArmorTrigger::IsActive()
|
||||
return bot->HasAura(SPELL_CRUNCH_ARMOR);
|
||||
}
|
||||
|
||||
bool AuriayaFallFromFloorTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "auriaya");
|
||||
if (!boss || !boss->IsAlive())
|
||||
return false;
|
||||
|
||||
// Check if bot is on the floor
|
||||
return bot->GetPositionZ() < ULDUAR_AURIAYA_AXIS_Z_PATHING_ISSUE_DETECT;
|
||||
}
|
||||
|
||||
bool HodirBitingColdTrigger::IsActive()
|
||||
{
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "hodir");
|
||||
|
||||
Reference in New Issue
Block a user