mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/AI: Minor adjustment on the WorldBossAI : Avoid putting the entire map in combatmode...
This commit is contained in:
@@ -667,15 +667,15 @@ void WorldBossAI::_JustDied()
|
|||||||
|
|
||||||
void WorldBossAI::_EnterCombat()
|
void WorldBossAI::_EnterCombat()
|
||||||
{
|
{
|
||||||
me->setActive(true);
|
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true);
|
||||||
DoZoneInCombat();
|
AttackStart(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldBossAI::JustSummoned(Creature* summon)
|
void WorldBossAI::JustSummoned(Creature* summon)
|
||||||
{
|
{
|
||||||
summons.Summon(summon);
|
summons.Summon(summon);
|
||||||
if (me->isInCombat())
|
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0, 0.0f, true));
|
||||||
DoZoneInCombat(summon);
|
summon->AI()->AttackStart(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldBossAI::SummonedCreatureDespawn(Creature* summon)
|
void WorldBossAI::SummonedCreatureDespawn(Creature* summon)
|
||||||
|
|||||||
Reference in New Issue
Block a user