mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-13 23:33:47 +00:00
Hodir tactics (#977)
* - Added tactic for Hodir Biting Cold ability * - Added tactic for Hodir Flash Freeze - Modified tactic for Hodir Biting Cold
This commit is contained in:
@@ -241,3 +241,25 @@ bool RazorscaleFuseArmorTrigger::IsActive()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool HodirBitingColdTrigger::IsActive()
|
||||
{
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "hodir");
|
||||
return boss && botAI->GetAura("biting cold", bot, false, false);
|
||||
}
|
||||
|
||||
//Snowpacked Icicle Target
|
||||
bool HodirNearSnowpackedIcicleTrigger::IsActive()
|
||||
{
|
||||
// Check boss and it is alive
|
||||
Unit* boss = AI_VALUE2(Unit*, "find target", "hodir");
|
||||
if (!boss || !boss->IsAlive())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Find the nearest Snowpacked Icicle Target
|
||||
Creature* target = bot->FindNearestCreature(33174, 100.0f);
|
||||
if (!target)
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user