diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java index 7acd7cb5e..fc070d717 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java @@ -116,6 +116,7 @@ public class Guard extends Mob { private void pullEnemy( Char enemy, int pullPos ){ enemy.pos = pullPos; + enemy.sprite.place(pullPos); Dungeon.level.occupyCell(enemy); Cripple.prolong(enemy, Cripple.class, 4f); if (enemy == Dungeon.hero) { @@ -173,7 +174,7 @@ public class Guard extends Mob { && !isCharmedBy( enemy ) && !canAttack( enemy ) && Dungeon.level.distance( pos, enemy.pos ) < 5 - && Random.Int(3) == 0 + && chain(enemy.pos)){ return !(sprite.visible || enemy.sprite.visible); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java index 76650b95b..08f8ae646 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java @@ -21,6 +21,7 @@ package com.shatteredpixel.shatteredpixeldungeon.effects; +import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite; @@ -58,7 +59,9 @@ public class Pushing extends Actor { @Override protected boolean act() { if (sprite != null) { - + if (Dungeon.level.heroFOV[from] || Dungeon.level.heroFOV[to]){ + sprite.visible = true; + } if (effect == null) { new Effect(); }