diff --git a/gemrb/core/GameScript/Actions.cpp b/gemrb/core/GameScript/Actions.cpp index bef62fde73..0c856f8bda 100644 --- a/gemrb/core/GameScript/Actions.cpp +++ b/gemrb/core/GameScript/Actions.cpp @@ -3944,7 +3944,7 @@ void GameScript::RemovePaladinHood(Scriptable* Sender, Action* /*parameters*/) return; } Actor *act = (Actor *) Sender; - act->ApplyKit(true); + act->ApplyKit(true, act->GetClassID(ISPALADIN)); act->SetMCFlag(MC_FALLEN_PALADIN, OP_OR); if (act->InParty) displaymsg->DisplayConstantStringName(STR_PALADIN_FALL, DMC_BG2XPGREEN, act); } @@ -3955,7 +3955,7 @@ void GameScript::RemoveRangerHood(Scriptable* Sender, Action* /*parameters*/) return; } Actor *act = (Actor *) Sender; - act->ApplyKit(true); + act->ApplyKit(true, act->GetClassID(ISRANGER)); act->SetMCFlag(MC_FALLEN_RANGER, OP_OR); if (act->InParty) displaymsg->DisplayConstantStringName(STR_RANGER_FALL, DMC_BG2XPGREEN, act); } @@ -3967,7 +3967,7 @@ void GameScript::RegainPaladinHood(Scriptable* Sender, Action* /*parameters*/) } Actor *act = (Actor *) Sender; act->SetMCFlag(MC_FALLEN_PALADIN, OP_NAND); - act->ApplyKit(false); + act->ApplyKit(false, act->GetClassID(ISPALADIN)); } void GameScript::RegainRangerHood(Scriptable* Sender, Action* /*parameters*/) @@ -3977,7 +3977,7 @@ void GameScript::RegainRangerHood(Scriptable* Sender, Action* /*parameters*/) } Actor *act = (Actor *) Sender; act->SetMCFlag(MC_FALLEN_RANGER, OP_NAND); - act->ApplyKit(false); + act->ApplyKit(false, act->GetClassID(ISRANGER)); } //transfering item from Sender to target, target must be an actor