*Fix the bug that some mount spells show two mounts, one on the other.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-21 14:20:00 -05:00
parent 60ca71e64f
commit e643d3994c
2 changed files with 7 additions and 4 deletions
+5
View File
@@ -2768,6 +2768,11 @@ void AuraEffect::HandleAuraMounted(bool apply, bool Real)
if (minfo)
display_id = minfo->modelid;
//some spell has one aura of mount and one of vehicle
for(uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
if(GetSpellProto()->Effect[i] == SPELL_EFFECT_SUMMON
&& GetSpellProto()->EffectMiscValue[i] == GetMiscValue())
display_id = 0;
m_target->Mount(display_id);
}
else