fix(Scripts/IcecrownCitadel): Fix Svalna crash (#15862)
This commit is contained in:
@@ -1007,13 +1007,6 @@ public:
|
|||||||
me->SendMovementFlagUpdate();
|
me->SendMovementFlagUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void AttackStart(Unit* victim) override
|
|
||||||
{
|
|
||||||
if (me->HasReactState(REACT_PASSIVE) || me->IsImmuneToAll())
|
|
||||||
return;
|
|
||||||
BossAI::AttackStart(victim);
|
|
||||||
}
|
|
||||||
|
|
||||||
void JustDied(Unit* /*killer*/) override
|
void JustDied(Unit* /*killer*/) override
|
||||||
{
|
{
|
||||||
_JustDied();
|
_JustDied();
|
||||||
@@ -1039,13 +1032,6 @@ public:
|
|||||||
|
|
||||||
void JustEngagedWith(Unit* /*attacker*/) override
|
void JustEngagedWith(Unit* /*attacker*/) override
|
||||||
{
|
{
|
||||||
if (me->HasReactState(REACT_PASSIVE) || me->IsImmuneToAll())
|
|
||||||
{
|
|
||||||
me->CombatStop(false);
|
|
||||||
me->SetImmuneToAll(true);
|
|
||||||
me->SetReactState(REACT_PASSIVE);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_JustEngagedWith();
|
_JustEngagedWith();
|
||||||
me->LowerPlayerDamageReq(me->GetMaxHealth());
|
me->LowerPlayerDamageReq(me->GetMaxHealth());
|
||||||
if (Creature* crok = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_CROK_SCOURGEBANE)))
|
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
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user