fix(Scripts/IcecrownCitadel): Fix Putricide crash (#15846)

This commit is contained in:
Skjalf
2023-04-06 18:19:46 -03:00
committed by GitHub
parent 37f0b7095f
commit e2cfb5c5a9

View File

@@ -277,12 +277,6 @@ public:
_experimentState = (data ? 1 : 0);
}
void AttackStart(Unit* who) override
{
if (instance->CheckRequiredBosses(DATA_PROFESSOR_PUTRICIDE))
BossAI::AttackStart(who);
}
bool CanAIAttack(Unit const* target) const override
{
return me->IsVisible() && target->GetPositionZ() > 388.0f && target->GetPositionZ() < 410.0f && target->GetPositionY() > 3157.1f && target->GetExactDist2dSq(4356.0f, 3211.0f) < 80.0f * 80.0f;