aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-23 00:43:49 -0500
committermegamage <none@none>2009-08-23 00:43:49 -0500
commitdb066046df2272b98f478a7072067a41fe69905f (patch)
treef92bbb74a08e1932e295a34ceaa8047db76ad813 /src/game/SpellEffects.cpp
parent7c720763558fbf4a35755b6055e6a127326834a5 (diff)
*Do not always set faction in summonvehicle function.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 1bf46269461..997417c158c 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3386,8 +3386,7 @@ void Spell::EffectSummonType(uint32 i)
// this is for wintergrasp, need to find a better way
// in the future, we can just use getsummoner
//vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_originalCasterGUID);
- //if(m_originalCaster)
- // vehicle->setFaction(m_originalCaster->getFaction());
+ vehicle->setFaction(m_originalCaster->getFaction());
vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
break;
}
@@ -3481,7 +3480,7 @@ void Spell::EffectSummonType(uint32 i)
return;
//vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_caster->GetGUID());
- //vehicle->setFaction(m_caster->getFaction());
+ vehicle->setFaction(m_caster->getFaction());
vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
if(damage)