mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Core/AI Prevent bosses respawn when BossState is set to DONE (#17616)
This commit is contained in:
@@ -507,6 +507,14 @@ void BossAI::_EnterCombat()
|
||||
ScheduleTasks();
|
||||
}
|
||||
|
||||
bool BossAI::CanRespawn()
|
||||
{
|
||||
if (instance && instance->GetBossState(_bossId) == DONE)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void BossAI::TeleportCheaters()
|
||||
{
|
||||
float x, y, z;
|
||||
|
||||
Reference in New Issue
Block a user