mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[8675] Implemented dummy effects for spells 49357, 52845.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
356f1da19b
commit
aa87b7007c
2 changed files with 59 additions and 1 deletions
|
|
@ -1159,6 +1159,35 @@ void Spell::EffectDummy(uint32 i)
|
||||||
m_caster->CastSpell(m_caster, 45088, true);
|
m_caster->CastSpell(m_caster, 45088, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 49357: // Brewfest Mount Transformation
|
||||||
|
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!m_caster->HasAuraType(SPELL_AURA_MOUNTED))
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_caster->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
|
||||||
|
|
||||||
|
// Ram for Alliance, Kodo for Horde
|
||||||
|
if (((Player *)m_caster)->GetTeam() == ALLIANCE)
|
||||||
|
{
|
||||||
|
if (m_caster->GetSpeedRate(MOVE_RUN) >= 2.0f)
|
||||||
|
// 100% Ram
|
||||||
|
m_caster->CastSpell(m_caster, 43900, true);
|
||||||
|
else
|
||||||
|
// 60% Ram
|
||||||
|
m_caster->CastSpell(m_caster, 43899, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (((Player *)m_caster)->GetSpeedRate(MOVE_RUN) >= 2.0f)
|
||||||
|
// 100% Kodo
|
||||||
|
m_caster->CastSpell(m_caster, 49379, true);
|
||||||
|
else
|
||||||
|
// 60% Kodo
|
||||||
|
m_caster->CastSpell(m_caster, 49378, true);
|
||||||
|
}
|
||||||
|
return;
|
||||||
case 50243: // Teach Language
|
case 50243: // Teach Language
|
||||||
{
|
{
|
||||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
|
@ -1225,6 +1254,35 @@ void Spell::EffectDummy(uint32 i)
|
||||||
return;
|
return;
|
||||||
m_caster->CastCustomSpell(unitTarget, 52752, &damage, NULL, NULL, true);
|
m_caster->CastCustomSpell(unitTarget, 52752, &damage, NULL, NULL, true);
|
||||||
return;
|
return;
|
||||||
|
case 52845: // Brewfest Mount Transformation (Faction Swap)
|
||||||
|
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!m_caster->HasAuraType(SPELL_AURA_MOUNTED))
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_caster->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
|
||||||
|
|
||||||
|
// Ram for Horde, Kodo for Alliance
|
||||||
|
if (((Player *)m_caster)->GetTeam() == HORDE)
|
||||||
|
{
|
||||||
|
if (m_caster->GetSpeedRate(MOVE_RUN) >= 2.0f)
|
||||||
|
// 100% Ram
|
||||||
|
m_caster->CastSpell(m_caster, 43900, true);
|
||||||
|
else
|
||||||
|
// 60% Ram
|
||||||
|
m_caster->CastSpell(m_caster, 43899, true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (((Player *)m_caster)->GetSpeedRate(MOVE_RUN) >= 2.0f)
|
||||||
|
// 100% Kodo
|
||||||
|
m_caster->CastSpell(m_caster, 49379, true);
|
||||||
|
else
|
||||||
|
// 60% Kodo
|
||||||
|
m_caster->CastSpell(m_caster, 49378, true);
|
||||||
|
}
|
||||||
|
return;
|
||||||
case 53341: // Rune of Cinderglacier
|
case 53341: // Rune of Cinderglacier
|
||||||
case 53343: // Rune of Razorice
|
case 53343: // Rune of Razorice
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8674"
|
#define REVISION_NR "8675"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue