Fix range skill

Fix player suddenly stopping ranged attacks.
This commit is contained in:
latifundio 2012-09-07 23:36:37 -03:00
parent 467c8ec594
commit b362dcf930
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ public class RangeEvent extends DelayedEvent {
npc.setChasing(null);
}
});
// target is still alive? is still around?
if (!npc.isRemoved() || owner.withinRange(npc)) {
return;
}
this.stop();
}
}