From 5bbf07976f7f3f070d87c9c80b71283cacda1401 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 20 Jul 2014 14:41:39 +0200 Subject: [PATCH] Consider Shield spell effect for creature armor rating --- apps/openmw/mwclass/creature.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwclass/creature.cpp b/apps/openmw/mwclass/creature.cpp index d521b1b33..737ed002f 100644 --- a/apps/openmw/mwclass/creature.cpp +++ b/apps/openmw/mwclass/creature.cpp @@ -637,8 +637,7 @@ namespace MWClass float Creature::getArmorRating (const MWWorld::Ptr& ptr) const { - /// \todo add Shield magic effect magnitude here, controlled by a GMST (Vanilla vs MCP behaviour) - return 0.f; + return getCreatureStats(ptr).getMagicEffects().get(ESM::MagicEffect::Shield).mMagnitude; } float Creature::getCapacity (const MWWorld::Ptr& ptr) const