Permalink
Browse files

Actor::ShouldHibernate: also check LastTargetPos (for ground casting)

  • Loading branch information...
1 parent 7810bfd commit d00c1ccea4d687b7f6f35975f4addbd899b81179 @lynxlynxlynx lynxlynxlynx committed Aug 9, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 gemrb/core/Scriptable/Actor.cpp
@@ -7047,6 +7047,8 @@ bool Actor::ShouldHibernate() {
return false;
if (LastTarget) //currently attacking someone
return false;
+ if (!LastTargetPos.isempty()) //currently casting at the ground
+ return false;
if (InternalFlags&IF_JUSTDIED) // didn't have a chance to run a script
return false;
if (CurrentAction)

0 comments on commit d00c1cc

Please sign in to comment.