v1.4.0: added an additional safety check to knockback logic
This commit is contained in:
+2
-2
@@ -150,8 +150,8 @@ public class WandOfBlastWave extends DamageWand {
|
|||||||
|
|
||||||
Actor.addDelayed(new Pushing(ch, ch.pos, newPos, new Callback() {
|
Actor.addDelayed(new Pushing(ch, ch.pos, newPos, new Callback() {
|
||||||
public void call() {
|
public void call() {
|
||||||
if (initialpos != ch.pos) {
|
if (initialpos != ch.pos || Actor.findChar(newPos) != null) {
|
||||||
//something caused movement before pushing resolved, cancel to be safe.
|
//something caused movement or added chars before pushing resolved, cancel to be safe.
|
||||||
ch.sprite.place(ch.pos);
|
ch.sprite.place(ch.pos);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user