v1.4.0: added an additional safety check to knockback logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user