Core/Units: consider summoned units with a creator guid also as party or raid member
the old logic was built on the false assumption that all units like totems have a ownerguid - they do not. They only have a creatorguid. Ownerguids (as the name implies) is only applied on units that the player is actively controlling. 3.3.5 has this implemented in a wrong way while 4.x does not. *also fixed up more cherrypick mistakes while at it
This commit is contained in:
1 parent
3976ae557b
commit
6a71b6d053
6 files changed
+22
-12
No files matched your search
@@ -1928,7 +1928,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
|
||||
SummonCreatureExtraArgs extraArgs;
|
||||
extraArgs.SummonProperties = properties;
|
||||
extraArgs.SummonDuration = duration;
|
||||
extraArgs.Summoner = unitCaster;
|
||||
extraArgs.Summoner = caster->IsUnit() ? caster->ToUnit() : nullptr;
|
||||
extraArgs.SummonSpellId = m_spellInfo->Id;
|
||||
extraArgs.PrivateObjectOwner = privateObjectOwner;
|
||||
|
||||
|
||||
Reference in new issue
Block a user