v0.9.3: fixed the ghost hero getting stuck moving to a defend pos
This commit is contained in:
parent
3d0bb462c2
commit
2f69b7b51b
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user