mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 20:52:22 -04:00
Core/BossAI: Remove _DespawnAtEvade(uint32, Creature*) overload
Use _DespawnAtEvade(Seconds, Creature*) instead
This commit is contained in:
committed by
Peter Keresztes Schmidt
parent
d7ff8c272a
commit
27229c10cd
@@ -593,12 +593,12 @@ bool BossAI::CanAIAttack(Unit const* target) const
|
||||
return IsInBoundary(target);
|
||||
}
|
||||
|
||||
void BossAI::_DespawnAtEvade(Seconds delayToRespawn, Creature* who)
|
||||
void BossAI::_DespawnAtEvade(Seconds delayToRespawn /*= 30s*/, Creature* who /*= nullptr*/)
|
||||
{
|
||||
if (delayToRespawn < Seconds(2))
|
||||
if (delayToRespawn < 2s)
|
||||
{
|
||||
TC_LOG_ERROR("scripts.ai", "BossAI::_DespawnAtEvade: called with delay of %ld seconds, defaulting to 2 (me: %s)", delayToRespawn.count(), me->GetGUID().ToString().c_str());
|
||||
delayToRespawn = Seconds(2);
|
||||
delayToRespawn = 2s;
|
||||
}
|
||||
|
||||
if (!who)
|
||||
@@ -611,7 +611,7 @@ void BossAI::_DespawnAtEvade(Seconds delayToRespawn, Creature* who)
|
||||
return;
|
||||
}
|
||||
|
||||
who->DespawnOrUnsummon(0, Seconds(delayToRespawn));
|
||||
who->DespawnOrUnsummon(0, delayToRespawn);
|
||||
|
||||
if (instance && who == me)
|
||||
instance->SetBossState(_bossId, FAIL);
|
||||
|
||||
Reference in New Issue
Block a user