Skip to content

Commit

Permalink
Actor::RefreshEffects: don't trample the silly pst disguise system
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxlynxlynx committed Dec 28, 2013
1 parent 515da00 commit 47e77b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gemrb/core/Scriptable/Actor.cpp
Expand Up @@ -2902,7 +2902,12 @@ void Actor::RefreshEffects(EffectQueue *fx)
RefreshPCStats(); RefreshPCStats();


//if the animation ID was not modified by any effect, it may still be modified by something else //if the animation ID was not modified by any effect, it may still be modified by something else
if (Modified[IE_ANIMATION_ID] == BaseStats[IE_ANIMATION_ID]) { // but not if pst is playing disguise tricks (GameScript::SetNamelessDisguise)
ieDword appearance = 0;
if (pstflags) {
core->GetGame()->locals->Lookup("APPEARANCE", appearance);
}
if (Modified[IE_ANIMATION_ID] == BaseStats[IE_ANIMATION_ID] && appearance == 0) {
UpdateAnimationID(true); UpdateAnimationID(true);
} }


Expand Down

0 comments on commit 47e77b2

Please sign in to comment.