mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Scripts/IcecrownCitadel): Fix Svalna crash (#15862)
This commit is contained in:
@@ -1007,13 +1007,6 @@ public:
|
||||
me->SendMovementFlagUpdate();
|
||||
}
|
||||
|
||||
void AttackStart(Unit* victim) override
|
||||
{
|
||||
if (me->HasReactState(REACT_PASSIVE) || me->IsImmuneToAll())
|
||||
return;
|
||||
BossAI::AttackStart(victim);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
_JustDied();
|
||||
@@ -1039,13 +1032,6 @@ public:
|
||||
|
||||
void JustEngagedWith(Unit* /*attacker*/) override
|
||||
{
|
||||
if (me->HasReactState(REACT_PASSIVE) || me->IsImmuneToAll())
|
||||
{
|
||||
me->CombatStop(false);
|
||||
me->SetImmuneToAll(true);
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
return;
|
||||
}
|
||||
_JustEngagedWith();
|
||||
me->LowerPlayerDamageReq(me->GetMaxHealth());
|
||||
if (Creature* crok = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_CROK_SCOURGEBANE)))
|
||||
|
||||
@@ -1457,7 +1457,7 @@ public:
|
||||
|
||||
bool CheckRequiredBosses(uint32 bossId, Player const* player) const override
|
||||
{
|
||||
if (player->GetSession() && player->GetSession()->GetSecurity() >= SEC_MODERATOR)
|
||||
if (player && player->GetSession() && player->GetSession()->GetSecurity() >= SEC_MODERATOR)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user