mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Scripts/IcecrownCitadel): Fix Putricide crash (#15846)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user