aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Commands
diff options
context:
space:
mode:
authorQAston <none@none>2010-08-18 19:26:07 +0200
committerQAston <none@none>2010-08-18 19:26:07 +0200
commit2ffe785765e3812e442d246f9561cebd83a008cb (patch)
treec3d4cbc87d0ea143752cf9f212b96f3f6498c2fa /src/server/game/Chat/Commands
parentb8a613647f8d204186fa30f35a8b4e2cb9337a73 (diff)
Core/Spells: add SPELL_ATTR_CU_IGNORE_ARMOR to the avalible custom attribute list, make some spells use the attribute. Research made with JohnHoliver and Shauren
--HG-- branch : trunk
Diffstat (limited to 'src/server/game/Chat/Commands')
-rw-r--r--src/server/game/Chat/Commands/Level3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp
index f0c0b0fbc42..14cf5e0b858 100644
--- a/src/server/game/Chat/Commands/Level3.cpp
+++ b/src/server/game/Chat/Commands/Level3.cpp
@@ -3992,7 +3992,7 @@ bool ChatHandler::HandleDamageCommand(const char * args)
SpellSchoolMask schoolmask = SpellSchoolMask(1 << school);
- if (schoolmask & SPELL_SCHOOL_MASK_NORMAL)
+ if (Unit::IsDamageReducedByArmor(schoolmask))
damage = m_session->GetPlayer()->CalcArmorReducedDamage(target, damage, NULL, BASE_ATTACK);
char* spellStr = strtok((char*)NULL, " ");