Skip to content

Commit

Permalink
Add AoE Avoidance for Hot Coals in MC (#6)
Browse files Browse the repository at this point in the history
Majordomo Hot Coals damage avoidance.
  • Loading branch information
Day36512 committed May 20, 2024
1 parent 3c092a7 commit 0bd1498
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 @@ -5099,6 +5099,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 0bd1498

Please sign in to comment.