mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9522] Implement spells 58600 and 58601
This commit is contained in:
parent
24540e4b03
commit
da30ea5ed8
4 changed files with 16 additions and 1 deletions
|
|
@ -2475,6 +2475,14 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
m_target->CastSpell(m_target, 47287, true, NULL, this);
|
||||
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
|
||||
|
|
|
|||
|
|
@ -1536,6 +1536,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
case 58418: // Portal to Orgrimmar
|
||||
case 58420: // Portal to Stormwind
|
||||
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
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
|
|
|
|||
|
|
@ -509,6 +509,7 @@ bool IsPositiveEffect(uint32 spellId, SpellEffectIndex effIndex)
|
|||
case 38639: // Nether Exhaustion (blue)
|
||||
case 11196: // Recently Bandaged
|
||||
case 44689: // Relay Race Accept Hidden Debuff - DND
|
||||
case 58600: // Restricted Flight Area
|
||||
return false;
|
||||
// some spells have unclear target modes for selection, so just make effect positive
|
||||
case 27184:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9521"
|
||||
#define REVISION_NR "9522"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue