diff options
author | megamage <none@none> | 2009-05-23 22:21:47 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-23 22:21:47 -0500 |
commit | 0f2ac46d87e497113e5410dc4e75c9c06d2aefbc (patch) | |
tree | 2c6cee9865ba000c75369ccf189337717241903f /src | |
parent | 946aa87445b4676eef8b4775426557982e863f8c (diff) |
*Set vehicle faction when summoning instead of entering
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 743b395273f..b01a445da58 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3310,6 +3310,7 @@ void Spell::EffectSummonType(uint32 i) return; //vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_caster->GetGUID()); + vehicle->setFaction(m_caster->getFaction()); vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); break; } @@ -3408,6 +3409,7 @@ void Spell::EffectSummonType(uint32 i) return; vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_caster->GetGUID()); + vehicle->setFaction(m_caster->getFaction()); vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id); if(damage) |