v0.9.3: fixed the ghost hero getting stuck moving to a defend pos

This commit is contained in:
Evan Debenham 2021-05-09 12:33:35 -04:00
parent 3d0bb462c2
commit 2f69b7b51b

View File

@ -887,6 +887,11 @@ public class DriedRose extends Artifact {
if (pos == defendingPos) movingToDefendPos = false;
return moveSprite( oldPos, pos );
} else {
//if ghost can't move closer to defending pos, then give up an defend current position
if (movingToDefendPos){
defendingPos = pos;
movingToDefendPos = false;
}
spend( TICK );
}