v1.4.0: added an additional safety check to knockback logic

This commit is contained in:
Evan Debenham
2022-08-30 13:25:46 -04:00
parent a09b718ce2
commit c6cc0d78e1

View File

@@ -150,8 +150,8 @@ public class WandOfBlastWave extends DamageWand {
Actor.addDelayed(new Pushing(ch, ch.pos, newPos, new Callback() {
public void call() {
if (initialpos != ch.pos) {
//something caused movement before pushing resolved, cancel to be safe.
if (initialpos != ch.pos || Actor.findChar(newPos) != null) {
//something caused movement or added chars before pushing resolved, cancel to be safe.
ch.sprite.place(ch.pos);
return;
}