Permalink
Browse files

Actor::CheckCastingInterrupt: noop when not casting

avoids extreneus spam
  • Loading branch information...
1 parent 68e1f1b commit 748e2cfe93bf03005233536c8c075340ebf7b895 @lynxlynxlynx lynxlynxlynx committed Jan 12, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 gemrb/core/Scriptable/Actor.cpp
View
5 gemrb/core/Scriptable/Actor.cpp
@@ -3750,6 +3750,11 @@ bool Actor::CheckCastingInterrupt(int damage, int spellLevel)
if (!third) {
return true;
}
+ // FIXME: change to SpellTarget once the split is done
+ if (!LastTarget && LastTargetPos.isempty()) {
+ // not casting, nothing to do
+ return false;
+ }
int roll = core->Roll(1, 20, 0);
int concentration = Modified[IE_CONCENTRATION];
int bonus = 4; // combat casting bonus for when injured

0 comments on commit 748e2cf

Please sign in to comment.