mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Script): Shadowmeld (#4857)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user