Don't apply Charm to creatures (bug #7630)

macos_ci_fix
Alexei Kotov 1 year ago
parent febfa353e0
commit d0ffe6e2f9

@ -77,6 +77,7 @@
Bug #7603: Scripts menu size is not updated properly
Bug #7604: Goblins Grunt becomes idle once injured
Bug #7609: ForceGreeting should not open dialogue for werewolves
Bug #7630: Charm can be cast on creatures
Feature #3537: Shader-based water ripples
Feature #5492: Let rain and snow collide with statics
Feature #6149: Dehardcode Lua API_REVISION

@ -559,6 +559,10 @@ namespace MWMechanics
modifyAiSetting(
target, effect, ESM::MagicEffect::RallyCreature, AiSetting::Flee, -effect.mMagnitude, invalid);
break;
case ESM::MagicEffect::Charm:
if (!target.getClass().isNpc())
invalid = true;
break;
case ESM::MagicEffect::Sound:
if (target == getPlayer())
{

Loading…
Cancel
Save