1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:23:53 +00:00

Only show "target resists magic" message for spells cast by player

This commit is contained in:
scrawl 2014-07-28 17:54:14 +02:00
parent f67b7dae91
commit 5349699172

View file

@ -379,7 +379,7 @@ namespace MWMechanics
// Fully resisted, show message // Fully resisted, show message
if (target.getRefData().getHandle() == "player") if (target.getRefData().getHandle() == "player")
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicPCResisted}"); MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicPCResisted}");
else else if (castByPlayer)
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicTargetResisted}"); MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicTargetResisted}");
} }
} }