*Apply tenacity buff on vehicles of wintergrasp.

*Fix the bug that tenacity is not applied on horde players.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-05 14:21:25 -05:00
parent afd79d7ebf
commit 13fd9ea601
5 changed files with 80 additions and 14 deletions

View File

@@ -3295,7 +3295,8 @@ void Spell::EffectSummonType(uint32 i)
return;
//vehicle->SetUInt64Value(UNIT_FIELD_SUMMONEDBY, m_caster->GetGUID());
vehicle->setFaction(m_caster->getFaction());
if(m_originalCaster)
vehicle->setFaction(m_originalCaster->getFaction());
vehicle->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
break;
}