Fixed FrightenedGhostMode blinking
This commit is contained in:
@ -23,7 +23,7 @@ public class FrightenedGhostMode extends AbstractGhostModeImpl {
|
||||
private boolean isBlinking = false;
|
||||
|
||||
public FrightenedGhostMode(Ghost ghost) {
|
||||
super(ghost, new FearStrategy(), ghost.getLevelManager(), 8);
|
||||
super(ghost, new FearStrategy(), ghost.getLevelManager(), ghost.getAnimation());
|
||||
strategy = new FearStrategy();
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ public class FrightenedGhostMode extends AbstractGhostModeImpl {
|
||||
|
||||
@Override
|
||||
public BufferedImage[] getAnimation() {
|
||||
return (isBlinking ? FEAR_ANIMATION : super.getAnimation());
|
||||
return (!isBlinking ? FEAR_ANIMATION : super.getAnimation());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user