Permalink
Browse files

fx_pause_target is called with empty parameters, at least in bg2

adds the missing negotiating phase to elemental conjuration and
fixes some other misc spells
  • Loading branch information...
1 parent cc4769c commit c7bb60726dcede2e2dd287c158e32bb3fd1c7a8f @lynxlynxlynx lynxlynxlynx committed Jun 22, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
@@ -4649,6 +4649,10 @@ int fx_cure_intoxication (Scriptable* /*Owner*/, Actor* target, Effect* fx)
int fx_pause_target (Scriptable* /*Owner*/, Actor * target, Effect* fx)
{
if(0) print("fx_pause_target(%2d): Mod: %d, Type: %d", fx->Opcode, fx->Parameter1, fx->Parameter2);
+ // the parameters are not set (bg2), so we can't use STAT_MOD alone
+ if (!fx->Parameter1) {
+ fx->Parameter1 = 1;
+ }
STAT_MOD( IE_CASTERHOLD );
return FX_PERMANENT;
}

0 comments on commit c7bb607

Please sign in to comment.