Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit c7bb60726dcede2e2dd287c158e32bb3fd1c7a8f 1 parent cc4769c
@lynxlynxlynx lynxlynxlynx authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 gemrb/plugins/FXOpcodes/FXOpcodes.cpp
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.