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

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-21 14:20:00 -05:00
1 parent 60ca71e64f
commit e643d3994c
2 files changed
+7 -4

No files matched your search

+2 -4
View File
@@ -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 );