fix(Scripts/IcecrownCitadel): Fix Svalna crash (#15862)
This commit is contained in:
parent
e2cfb5c5a9
commit
c9973f3a80
2 changed files with 1 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue