fix(Core/Players): Fixed setting player's zone id to unknown value. (#10996)

* fix(Core/Players): Fixed setting player's zone id to unknown value.

Fixed #10945

* Update.

* Update.
This commit is contained in:
UltraNix
2022-04-01 11:59:12 +02:00
committed by GitHub
parent 4521dcb5c5
commit 14edda6c90
3 changed files with 7 additions and 2 deletions

View File

@@ -1499,7 +1499,7 @@ SpellCastResult SpellInfo::CheckLocation(uint32 map_id, uint32 zone_id, uint32 a
}
// continent limitation (virtual continent)
if (HasAttribute(SPELL_ATTR4_ONLY_FLYING_AREAS))
if (HasAttribute(SPELL_ATTR4_ONLY_FLYING_AREAS) && (area_id || zone_id))
{
AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(area_id);
if (!areaEntry)