aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/DataStores
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-11-12 17:12:42 -0300
committerariel- <ariel-@users.noreply.github.com>2016-11-12 17:12:42 -0300
commit5cb8409f1ee57e8dccb63cd11ce241b7a853379c (patch)
tree0de8f2e86f377a55d73ff1f575cc85bd6acc49b7 /src/server/game/DataStores
parent8c9d061110ad3f6ce9c2c7263d9fad86835f5886 (diff)
Core/Spell: move attribute helpers to spellInfo
- Renamed CheckEffectExecuteData to AssertEffectExecuteData and made const, better reflects its purpose - Added missing attribute check to IsNextMeleeSwingSpell - Reworked SPELL_ATTR4_CAST_ONLY_IN_OUTLAND attr check (researched behavior)
Diffstat (limited to 'src/server/game/DataStores')
-rw-r--r--src/server/game/DataStores/DBCStructure.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/DataStores/DBCStructure.h b/src/server/game/DataStores/DBCStructure.h
index a6445b27a44..8431f369b69 100644
--- a/src/server/game/DataStores/DBCStructure.h
+++ b/src/server/game/DataStores/DBCStructure.h
@@ -192,6 +192,17 @@ struct AreaTableEntry
return true;
return (flags & AREA_FLAG_SANCTUARY) != 0;
}
+
+ bool IsFlyable() const
+ {
+ if (flags & AREA_FLAG_OUTLAND)
+ {
+ if (!(flags & AREA_FLAG_NO_FLY_ZONE))
+ return true;
+ }
+
+ return false;
+ }
};
#define MAX_GROUP_AREA_IDS 6