*[Fix] fly in Northend without Cold Weather Flying if summoned, by Spp
--HG-- branch : trunk
This commit is contained in:
+13
-6
@@ -2730,12 +2730,19 @@ SpellCastResult SpellMgr::GetSpellAllowedInLocationError(SpellEntry const *spell
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// wintergrasp
|
// aura limitations
|
||||||
if(zone_id == 4197)
|
for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||||
for(uint32 i = 0; i < 3; ++i)
|
{
|
||||||
if(spellInfo->EffectApplyAuraName[i] == SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED
|
switch(spellInfo->EffectApplyAuraName[i])
|
||||||
|| spellInfo->EffectApplyAuraName[i] == SPELL_AURA_FLY)
|
{
|
||||||
return SPELL_FAILED_INCORRECT_AREA;
|
case SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED:
|
||||||
|
case SPELL_AURA_FLY:
|
||||||
|
{
|
||||||
|
if (player && !player->IsKnowHowFlyIn(map_id, zone_id))
|
||||||
|
return SPELL_FAILED_INCORRECT_AREA;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return SPELL_CAST_OK;
|
return SPELL_CAST_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user