- Added Kologarn Rubble slowdown strategy (#1220)

This commit is contained in:
kadeshar
2025-04-22 13:28:51 +02:00
committed by GitHub
parent 04b8b76362
commit bf54f74359
7 changed files with 68 additions and 1 deletions

View File

@@ -1390,6 +1390,21 @@ bool KologarnNatureResistanceAction::isUseful()
return kologarnNatureResistanceTrigger.IsActive();
}
bool KologarnRubbleSlowdownAction::Execute(Event event)
{
Group* group = bot->GetGroup();
if (!group)
return false;
int8 skullIndex = 7;
ObjectGuid currentSkullTarget = group->GetTargetIcon(skullIndex);
Unit* currentSkullUnit = botAI->GetUnit(currentSkullTarget);
if (!currentSkullUnit || !currentSkullUnit->IsAlive() || currentSkullUnit->GetEntry() != NPC_RUBBLE)
return false;
return botAI->CastSpell("frost trap", currentSkullUnit);
}
bool HodirMoveSnowpackedIcicleAction::isUseful()
{
// Check boss and it is alive