Skip to content

Commit

Permalink
Add AoE Avoidance for Hot Coals in MC
Browse files Browse the repository at this point in the history
Majordomo Hot Coals damage avoidance.
  • Loading branch information
Day36512 authored May 13, 2024
1 parent 01bd645 commit 9924ed7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/server/game/AI/NpcBots/bot_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5093,6 +5093,23 @@ void bot_ai::CalculateAoeSpots(Unit const* unit, AoeSpotsVec& spots)
spots.push_back(AoeSpotsVec::value_type(*(*ci), radius));
}
}
//Molten Core
if (unit->GetMapId() == 409)
{
std::list<GameObject*> gListMC;
Acore::AllGameObjectsWithEntryInRange checkMC(unit, 178164, 60.f);
Acore::GameObjectListSearcher<Acore::AllGameObjectsWithEntryInRange> searcherMC(unit, gListMC, checkMC);
Cell::VisitAllObjects(unit, searcherMC, 60.f);

for (auto* gameObject : gListMC)
{
if (!gameObject)
continue;

float radius = 15.0f + DEFAULT_COMBAT_REACH;
spots.push_back(AoeSpotsVec::value_type(*gameObject, radius));
}
}

//STUB
//if (!unit->IsPlayer() || !unit->ToPlayer()->HaveBot())
Expand Down

0 comments on commit 9924ed7

Please sign in to comment.