*Fix the bug that some mount spells show two mounts, one on the other.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-4
@@ -9582,12 +9582,10 @@ float Unit::GetPPMProcChance(uint32 WeaponSpeed, float PPM, const SpellEntry * s
|
||||
|
||||
void Unit::Mount(uint32 mount)
|
||||
{
|
||||
if(!mount)
|
||||
return;
|
||||
|
||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_MOUNT);
|
||||
|
||||
SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, mount);
|
||||
if(mount)
|
||||
SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID, mount);
|
||||
|
||||
SetFlag( UNIT_FIELD_FLAGS, UNIT_FLAG_MOUNT );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user