mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 13:37:07 +00:00
[9021] Implement item 21213 effect work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
6b78ed534d
commit
a8d4254d33
2 changed files with 21 additions and 5 deletions
|
|
@ -2273,9 +2273,15 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
}
|
||||
return;
|
||||
case 46699: // Requires No Ammo
|
||||
if(m_target->GetTypeId() == TYPEID_PLAYER)
|
||||
((Player*)m_target)->RemoveAmmo(); // not use ammo and not allow use
|
||||
case 46699: // Requires No Ammo
|
||||
if (m_target->GetTypeId() == TYPEID_PLAYER)
|
||||
// not use ammo and not allow use
|
||||
((Player*)m_target)->RemoveAmmo();
|
||||
return;
|
||||
case 62061: // Festive Holiday Mount
|
||||
if (m_target->HasAuraType(SPELL_AURA_MOUNTED))
|
||||
// Reindeer Transformation
|
||||
m_target->CastSpell(m_target, 25860, true, NULL, this);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
|
|
@ -4252,13 +4258,18 @@ void Aura::HandleAuraModIncreaseSpeed(bool /*apply*/, bool Real)
|
|||
m_target->UpdateSpeed(MOVE_RUN, true);
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModIncreaseMountedSpeed(bool /*apply*/, bool Real)
|
||||
void Aura::HandleAuraModIncreaseMountedSpeed(bool apply, bool Real)
|
||||
{
|
||||
// all applied/removed only at real aura add/remove
|
||||
if(!Real)
|
||||
return;
|
||||
|
||||
m_target->UpdateSpeed(MOVE_RUN, true);
|
||||
|
||||
// Festive Holiday Mount
|
||||
if (apply && GetSpellProto()->SpellIconID != 1794 && m_target->HasAura(62061))
|
||||
// Reindeer Transformation
|
||||
m_target->CastSpell(m_target, 25860, true, NULL, this);
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModIncreaseFlightSpeed(bool apply, bool Real)
|
||||
|
|
@ -4286,6 +4297,11 @@ void Aura::HandleAuraModIncreaseFlightSpeed(bool apply, bool Real)
|
|||
// Dragonmaw Illusion (overwrite mount model, mounted aura already applied)
|
||||
if( apply && m_target->HasAura(42016,0) && m_target->GetMountID())
|
||||
m_target->SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID,16314);
|
||||
|
||||
// Festive Holiday Mount
|
||||
if (apply && GetSpellProto()->SpellIconID != 1794 && m_target->HasAura(62061))
|
||||
// Reindeer Transformation
|
||||
m_target->CastSpell(m_target, 25860, true, NULL, this);
|
||||
}
|
||||
|
||||
m_target->UpdateSpeed(MOVE_FLIGHT, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue