mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16: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
|
|
@ -1032,7 +1032,7 @@ void Aura::ReapplyAffectedPassiveAuras()
|
|||
ReapplyAffectedPassiveAuras(GetTarget(), true);
|
||||
|
||||
// re-apply talents/passives/area auras applied to pet/totems (it affected by player spellmods)
|
||||
GetTarget()->CallForAllControlledUnits(ReapplyAffectedPassiveAurasHelper(this),true,false,false);
|
||||
GetTarget()->CallForAllControlledUnits(ReapplyAffectedPassiveAurasHelper(this), CONTROLED_PET|CONTROLED_TOTEMS);
|
||||
|
||||
// re-apply talents/passives/area auras applied to group members (it affected by player spellmods)
|
||||
if (Group* group = ((Player*)GetTarget())->GetGroup())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue