From f6ef1ce27689e3f5671bca7a2df01b9e6f6211be Mon Sep 17 00:00:00 2001 From: Assumeru Date: Tue, 25 Oct 2016 15:42:37 +0200 Subject: [PATCH] Fix Calm/Frenzy/Demoralize/Rally Creature weakness and resistance --- components/esm/loadmgef.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/esm/loadmgef.cpp b/components/esm/loadmgef.cpp index 7568ebe7e..dc8266132 100644 --- a/components/esm/loadmgef.cpp +++ b/components/esm/loadmgef.cpp @@ -298,10 +298,10 @@ short MagicEffect::getResistanceEffect(short effect) for (int i=0; i<2; ++i) { - effects[CalmHumanoid] = ResistMagicka; - effects[FrenzyHumanoid] = ResistMagicka; - effects[DemoralizeHumanoid] = ResistMagicka; - effects[RallyHumanoid] = ResistMagicka; + effects[CalmHumanoid+i] = ResistMagicka; + effects[FrenzyHumanoid+i] = ResistMagicka; + effects[DemoralizeHumanoid+i] = ResistMagicka; + effects[RallyHumanoid+i] = ResistMagicka; } effects[TurnUndead] = ResistMagicka; @@ -341,10 +341,10 @@ short MagicEffect::getWeaknessEffect(short effect) for (int i=0; i<2; ++i) { - effects[CalmHumanoid] = WeaknessToMagicka; - effects[FrenzyHumanoid] = WeaknessToMagicka; - effects[DemoralizeHumanoid] = WeaknessToMagicka; - effects[RallyHumanoid] = WeaknessToMagicka; + effects[CalmHumanoid+i] = WeaknessToMagicka; + effects[FrenzyHumanoid+i] = WeaknessToMagicka; + effects[DemoralizeHumanoid+i] = WeaknessToMagicka; + effects[RallyHumanoid+i] = WeaknessToMagicka; } effects[TurnUndead] = WeaknessToMagicka;