mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[11103] Fixed item 40775 mount work
* Move code to dummy aura (main spell mount aura not applied yet in time scripting effect processing) * Use special mount spell selection helper instead raw code.
This commit is contained in:
parent
44cb8b6dd4
commit
f09a4e2a1a
3 changed files with 4 additions and 19 deletions
|
|
@ -6586,24 +6586,6 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
|||
m_caster->CastSpell(m_caster, 57444, true);
|
||||
return;
|
||||
}
|
||||
case 54729: // Winged Steed of the Ebon Blade
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
// Prevent stacking of mounts
|
||||
unitTarget->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
|
||||
|
||||
// Triggered spell id dependent of riding skill
|
||||
if (uint16 skillval = ((Player*)unitTarget)->GetSkillValue(SKILL_RIDING))
|
||||
{
|
||||
if (skillval >= 300)
|
||||
unitTarget->CastSpell(unitTarget, 54727, true);
|
||||
else
|
||||
unitTarget->CastSpell(unitTarget, 54726, true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 54436: // Demonic Empowerment (succubus Vanish effect)
|
||||
{
|
||||
if (!unitTarget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue