aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/shared')
-rw-r--r--src/server/shared/DataStores/DBCStructure.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/shared/DataStores/DBCStructure.h b/src/server/shared/DataStores/DBCStructure.h
index 56ea11415fb..e2c12efee36 100644
--- a/src/server/shared/DataStores/DBCStructure.h
+++ b/src/server/shared/DataStores/DBCStructure.h
@@ -1292,6 +1292,16 @@ struct ScalingStatValuesEntry
return 0;
}
+ bool isTwoHand(uint32 mask) const
+ {
+ if (mask & 0x7E00)
+ {
+ if (mask & 0x00000400) return true;
+ if (mask & 0x00001000) return true;
+ }
+ return false;
+ }
+
uint32 getSpellBonus(uint32 mask) const
{
if (mask & 0x00008000) return SpellPower;