Skip to content

Commit

Permalink
Actor::CheckCastingInterrupt: noop when not casting
Browse files Browse the repository at this point in the history
avoids extreneus spam
  • Loading branch information
lynxlynxlynx committed Jan 12, 2014
1 parent 68e1f1b commit 748e2cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gemrb/core/Scriptable/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 748e2cf

Please sign in to comment.