Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

call pcf when changing stats

Makes people die when intelligence-drained by Mind Flayers.
  • Loading branch information...
commit c6c7988a596b559e7e456ea4bb1b04a2fe6cdefd 1 parent 545259e
fizzet fizzet authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 gemrb/core/Scriptable/Actor.cpp
6 gemrb/core/Scriptable/Actor.cpp
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.