aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2013-01-01 19:41:25 +0100
committerGacko <gacko28@gmx.de>2013-01-01 20:47:05 +0100
commit431b80727545484222f76a593bd0c7e62609d568 (patch)
tree8e7931ff78c329ef5a7c8840ccacbfdbccdd2bdb /src
parent7fea285aead434e5db01f3730fa964e5c607d4c3 (diff)
Core/Player: Fix armor calculation
Base armor value from WDB data includes the ArmorDamageModifier. Items of same item level, required level, armor type and equiptment slot should have (nearly) the same armor values. See following links for further proofs: http://pastebin.com/fqNJLYj4 http://www.wowhead.com/item=50466#comments:id=889035:reply=444786 The shown item should have a base armor value of 177 as similar items and a bonus armor value of 560 which equals 737 - like in DB atm.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Handlers/ItemHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/ItemHandler.cpp b/src/server/game/Handlers/ItemHandler.cpp
index 77d44dffd1b..712b1f5f25a 100644
--- a/src/server/game/Handlers/ItemHandler.cpp
+++ b/src/server/game/Handlers/ItemHandler.cpp
@@ -348,7 +348,7 @@ void WorldSession::HandleItemQuerySingleOpcode(WorldPacket& recvData)
}
// resistances (7)
- data << pProto->Armor;
+ data << (pProto->Armor ? pProto->Armor + uint32(pProto->ArmorDamageModifier) : 0);
data << pProto->HolyRes;
data << pProto->FireRes;
data << pProto->NatureRes;