Skip to content
Browse files

fx_lore_modifier interprets mode 2 as "mastery," not a percentage mod…

…ifier
  • Loading branch information...
1 parent 46d4b92 commit a519e27d2bc8f93ce7f48c40ddfaa951136d52fd @fizzet fizzet committed Jul 3, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
View
10 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
@@ -1660,10 +1660,16 @@ int fx_lore_modifier (Scriptable* /*Owner*/, Actor* target, Effect* fx)
{
if(0) print("fx_lore_modifier(%2d): Mod: %d, Type: %d", fx->Opcode, fx->Parameter1, fx->Parameter2);
+ ieDword mode = fx->Parameter1, value = fx->Parameter2;
+ if (mode == 2) {
+ //guaranteed identification
+ mode = MOD_ABSOLUTE;
+ value = 100;
+ }
if (fx->TimingMode==FX_DURATION_INSTANT_PERMANENT) {
- BASE_MOD( IE_LORE );
+ target->NewBase(IE_LORE, mode, value);
} else {
- STAT_MOD( IE_LORE );
+ target->NewStat(IE_LORE, mode, value);
}
return FX_PERMANENT;
}

0 comments on commit a519e27

Please sign in to comment.
Something went wrong with that request. Please try again.