mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10757] Implement zone limited pets unsummon at leave allowed zones.
* Also remove redundant zone/area args for zone/area update function like UpdateZoneDependentAuras. * Merge Player::*AllControlledUnits functions to Unit version with replace option args by mask arg. * Unit::*AllControlledUnits guardian iteration make working with internal unsummon call suport for guardians case.
This commit is contained in:
parent
1ef8ea1161
commit
b20b3e5ade
7 changed files with 88 additions and 72 deletions
|
|
@ -6188,7 +6188,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
{
|
||||
// Is this all to be done at completion?
|
||||
if (Pet* pPet = m_caster->FindGuardianWithEntry(pSpell->EffectMiscValue[EFFECT_INDEX_0]))
|
||||
pPet->Unsummon(PET_SAVE_NOT_IN_SLOT, m_caster);
|
||||
pPet->Unsummon(PET_SAVE_AS_DELETED, m_caster);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue