Core/Spells: Update no fly zone for wintergrasp
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
DELETE FROM `spell_area` WHERE `spell`=91604;
|
||||
INSERT INTO `spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`, `quest_start_status`, `quest_end_status`) VALUES
|
||||
(91604, 4197, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4538, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4539, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4575, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4577, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4581, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4582, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4583, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4585, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4589, 0, 0, 0, 0, 2, 1, 64, 11),
|
||||
(91604, 4612, 0, 0, 0, 0, 2, 1, 64, 11);
|
||||
@@ -76,7 +76,7 @@ enum WintergraspSpells
|
||||
// Other spells
|
||||
SPELL_WINTERGRASP_WATER = 36444,
|
||||
SPELL_ESSENCE_OF_WINTERGRASP = 58045,
|
||||
SPELL_WINTERGRASP_RESTRICTED_FLIGHT_AREA = 58730,
|
||||
SPELL_WINTERGRASP_RESTRICTED_FLIGHT_AREA = 91604,
|
||||
|
||||
// Phasing spells
|
||||
SPELL_HORDE_CONTROLS_FACTORY_PHASE_SHIFT = 56618, // ADDS PHASE 16
|
||||
|
||||
@@ -911,7 +911,7 @@ enum SpellEffects
|
||||
SPELL_EFFECT_APPLY_AREA_AURA_FRIEND = 128,
|
||||
SPELL_EFFECT_APPLY_AREA_AURA_ENEMY = 129,
|
||||
SPELL_EFFECT_REDIRECT_THREAT = 130,
|
||||
SPELL_EFFECT_131 = 131,
|
||||
SPELL_EFFECT_PLAYER_NOTIFICATION = 131,
|
||||
SPELL_EFFECT_PLAY_MUSIC = 132,
|
||||
SPELL_EFFECT_UNLEARN_SPECIALIZATION = 133,
|
||||
SPELL_EFFECT_KILL_CREDIT2 = 134,
|
||||
|
||||
@@ -4988,7 +4988,7 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool
|
||||
case 60244: // Blood Parrot Despawn Aura
|
||||
target->CastSpell((Unit*)NULL, GetAmount(), true, NULL, this);
|
||||
break;
|
||||
case 58730: // Restricted Flight Area
|
||||
case 91604: // Restricted Flight Area
|
||||
if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_EXPIRE)
|
||||
target->CastSpell(target, 58601, true);
|
||||
break;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -755,7 +755,7 @@ SpellEffectInfo::StaticData SpellEffectInfo::_data[TOTAL_SPELL_EFFECTS] =
|
||||
{EFFECT_IMPLICIT_TARGET_EXPLICIT, TARGET_OBJECT_TYPE_UNIT}, // 128 SPELL_EFFECT_APPLY_AREA_AURA_FRIEND
|
||||
{EFFECT_IMPLICIT_TARGET_EXPLICIT, TARGET_OBJECT_TYPE_UNIT}, // 129 SPELL_EFFECT_APPLY_AREA_AURA_ENEMY
|
||||
{EFFECT_IMPLICIT_TARGET_EXPLICIT, TARGET_OBJECT_TYPE_UNIT}, // 130 SPELL_EFFECT_REDIRECT_THREAT
|
||||
{EFFECT_IMPLICIT_TARGET_NONE, TARGET_OBJECT_TYPE_UNIT}, // 131 SPELL_EFFECT_131
|
||||
{EFFECT_IMPLICIT_TARGET_NONE, TARGET_OBJECT_TYPE_UNIT}, // 131 SPELL_EFFECT_PLAYER_NOTIFICATION
|
||||
{EFFECT_IMPLICIT_TARGET_EXPLICIT, TARGET_OBJECT_TYPE_UNIT}, // 132 SPELL_EFFECT_PLAY_MUSIC
|
||||
{EFFECT_IMPLICIT_TARGET_EXPLICIT, TARGET_OBJECT_TYPE_UNIT}, // 133 SPELL_EFFECT_UNLEARN_SPECIALIZATION
|
||||
{EFFECT_IMPLICIT_TARGET_NONE, TARGET_OBJECT_TYPE_UNIT}, // 134 SPELL_EFFECT_KILL_CREDIT2
|
||||
|
||||
@@ -1114,7 +1114,7 @@ bool SpellArea::IsFitToRequirements(Player const* player, uint32 newZone, uint32
|
||||
// Extra conditions -- leaving the possibility add extra conditions...
|
||||
switch (spellId)
|
||||
{
|
||||
case 58730: // No fly Zone - Wintergrasp
|
||||
case 91604: // No fly Zone - Wintergrasp
|
||||
{
|
||||
if (!player)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user