fix(Core/Script): Shadowmeld (#4857)
This commit is contained in:
parent
b385878e4a
commit
c95d1f72a8
@ -5111,13 +5111,11 @@ public:
|
||||
pCaster->SendAttackSwingCancelAttack();
|
||||
}
|
||||
|
||||
if (!caster->GetInstanceScript() || !caster->GetInstanceScript()->IsEncounterInProgress()) //Don't leave combat if you are in combat with a boss
|
||||
if (instant_exit)
|
||||
{
|
||||
if (!instant_exit) {
|
||||
caster->getHostileRefManager().deleteReferences(); // exit combat after 6 seconds
|
||||
}
|
||||
else caster->CombatStop(); // isn't necessary to call AttackStop because is just called in CombatStop
|
||||
caster->getHostileRefManager().deleteReferences();
|
||||
}
|
||||
caster->CombatStop();
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user