[9522] Implement spells 58600 and 58601

This commit is contained in:
Derex 2010-03-05 06:02:28 +02:00
parent 24540e4b03
commit da30ea5ed8
4 changed files with 16 additions and 1 deletions

View file

@ -2475,6 +2475,14 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
m_target->CastSpell(m_target, 47287, true, NULL, this); m_target->CastSpell(m_target, 47287, true, NULL, this);
return; return;
} }
case 58600: // Restricted Flight Area
{
// Remove Flight Auras
m_target->CastSpell(m_target, 58601, true);
// Parachute
m_target->CastSpell(m_target, 45472, true);
return;
}
} }
// Living Bomb // Living Bomb

View file

@ -1536,6 +1536,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
case 58418: // Portal to Orgrimmar case 58418: // Portal to Orgrimmar
case 58420: // Portal to Stormwind case 58420: // Portal to Stormwind
return; // implemented in EffectScript[0] return; // implemented in EffectScript[0]
case 58601: // Remove Flight Auras
{
m_caster->RemoveSpellsCausingAura(SPELL_AURA_FLY);
m_caster->RemoveSpellsCausingAura(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
return;
}
case 59640: // Underbelly Elixir case 59640: // Underbelly Elixir
{ {
if (m_caster->GetTypeId() != TYPEID_PLAYER) if (m_caster->GetTypeId() != TYPEID_PLAYER)

View file

@ -509,6 +509,7 @@ bool IsPositiveEffect(uint32 spellId, SpellEffectIndex effIndex)
case 38639: // Nether Exhaustion (blue) case 38639: // Nether Exhaustion (blue)
case 11196: // Recently Bandaged case 11196: // Recently Bandaged
case 44689: // Relay Race Accept Hidden Debuff - DND case 44689: // Relay Race Accept Hidden Debuff - DND
case 58600: // Restricted Flight Area
return false; return false;
// some spells have unclear target modes for selection, so just make effect positive // some spells have unclear target modes for selection, so just make effect positive
case 27184: case 27184:

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9521" #define REVISION_NR "9522"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__