aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2013-01-03 17:37:39 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2013-01-03 17:37:39 +0100
commiteba9abd2ee552859d5f63127e1d13b78e48dba7f (patch)
tree659b058e295f98adc45969b5cb88c1adbd40af0c /src/server/game/Spells/SpellEffects.cpp
parentaa43ecd18d9f434392d08f215182c73815f8c0da (diff)
Core/Spells: Update no fly zone for wintergrasp
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 18f10fd92b5..6c28633857c 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -5865,22 +5865,23 @@ void Spell::EffectPlayerNotification(SpellEffIndex effIndex)
switch (m_spellInfo->Id)
{
- case 58730: // Restricted Flight Area
+ case 91604: // Restricted Flight Area
unitTarget->ToPlayer()->GetSession()->SendNotification(LANG_ZONE_NOFLYZONE);
- unitTarget->PlayDirectSound(9417); // Fel Reaver sound
+ break;
+ default:
break;
}
- uint32 soundid = m_spellInfo->Effects[effIndex].MiscValue;
+ uint32 soundId = m_spellInfo->Effects[effIndex].MiscValue;
- if (!sSoundEntriesStore.LookupEntry(soundid))
+ if (!sSoundEntriesStore.LookupEntry(soundId))
{
- sLog->outError(LOG_FILTER_SPELLS_AURAS, "EffectPlayerNotification: Sound (Id: %u) not exist in spell %u.", soundid, m_spellInfo->Id);
+ sLog->outError(LOG_FILTER_SPELLS_AURAS, "EffectPlayerNotification: Sound (Id: %u) not exist in spell %u.", soundId, m_spellInfo->Id);
return;
}
WorldPacket data(SMSG_PLAY_SOUND, 4);
- data << uint32(soundid);
+ data << uint32(soundId);
unitTarget->ToPlayer()->GetSession()->SendPacket(&data);
}