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:
kadeshar
2025-02-17 15:22:46 +01:00
committed by GitHub
parent 58a596a40e
commit 050cc24e9c
7 changed files with 90 additions and 0 deletions

View File

@@ -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;
}