diff options
author | megamage <none@none> | 2009-08-14 22:25:12 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-14 22:25:12 -0500 |
commit | 43d35de4ffb224ec4061636e8783c06e68a8bc88 (patch) | |
tree | 30056f11a02d5ab1c48bc09a700161653c09fbdc /src/game/SpellEffects.cpp | |
parent | b8222df247c312cae1a3adcf7a3249c420cd3e99 (diff) |
*Fix the bug that summoner cannot attack summoned creatures. This bug was introduced in 4481. Note the difference between "summoner" and "owner".
*Valkyr script updated.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 89c75e4d563..94352859334 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3424,9 +3424,11 @@ void Spell::EffectSummonType(uint32 i) TempSummon * summon = m_originalCaster->SummonCreature(entry,px,py,pz,m_caster->GetOrientation(),summonType,duration); if (!summon) continue; - summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID()); if (properties->Category == SUMMON_CATEGORY_ALLY) + { + summon->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCaster->GetGUID()); summon->setFaction(m_originalCaster->getFaction()); + } } break; } |