Permalink
Browse files

call pcf when changing stats

Makes people die when intelligence-drained by Mind Flayers.
  • Loading branch information...
1 parent 545259e commit c6c7988a596b559e7e456ea4bb1b04a2fe6cdefd @fizzet fizzet committed May 24, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 gemrb/core/Scriptable/Actor.cpp
View
6 gemrb/core/Scriptable/Actor.cpp
@@ -3237,15 +3237,15 @@ int Actor::NewStat(unsigned int StatIndex, ieDword ModifierValue, ieDword Modifi
switch (ModifierType) {
case MOD_ADDITIVE:
//flat point modifier
- SetStat(StatIndex, Modified[StatIndex]+ModifierValue, 0);
+ SetStat(StatIndex, Modified[StatIndex]+ModifierValue, 1);
break;
case MOD_ABSOLUTE:
//straight stat change
- SetStat(StatIndex, ModifierValue, 0);
+ SetStat(StatIndex, ModifierValue, 1);
break;
case MOD_PERCENT:
//percentile
- SetStat(StatIndex, BaseStats[StatIndex] * ModifierValue / 100, 0);
+ SetStat(StatIndex, BaseStats[StatIndex] * ModifierValue / 100, 1);
break;
}
return Modified[StatIndex] - oldmod;

0 comments on commit c6c7988

Please sign in to comment.