fix(Core/Spell): Make use of SPELL_ATTR7_IGNORE_COLD_WEATHER_FLYING (#4933)

This commit is contained in:
Kitzunu
2021-03-25 01:19:57 +01:00
committed by GitHub
parent 83e430f28a
commit fb5d2fa2e5
5 changed files with 47 additions and 27 deletions

View File

@@ -522,6 +522,11 @@ struct AreaTableEntry
return true;
return (flags & AREA_FLAG_SANCTUARY);
}
[[nodiscard]] bool IsFlyable() const
{
return flags & AREA_FLAG_OUTLAND && !(flags & AREA_FLAG_NO_FLY_ZONE);
}
};
#define MAX_GROUP_AREA_IDS 6