mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-05 18:20:24 -08:00
fix(Core/Script): Shadowmeld (#4857)
This commit is contained in:
parent
b385878e4a
commit
c95d1f72a8
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue