diff options
Diffstat (limited to 'src/Battle.java')
-rw-r--r-- | src/Battle.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Battle.java b/src/Battle.java index 6f614eb..cde2734 100644 --- a/src/Battle.java +++ b/src/Battle.java @@ -133,7 +133,7 @@ public class Battle extends MapScene { g.fillRect(20*this.guiSize, 22*this.guiSize, 70*this.guiSize*this.lastActor.getHP()/10, 10*this.guiSize); g.setColor(Palette.BLACK); - g.drawString("Agility: " + Integer.toString(this.lastActor.getAgility()), + g.drawString("Agility: " + Integer.toString(this.lastActor.getSkills().agility), 5*this.guiSize, 45*this.guiSize); } else if (this.actorClicked) { g.setColor(Palette.WHITE_T); @@ -269,7 +269,7 @@ public class Battle extends MapScene { this.map.clearSelected(); ArrayList<Tile> path = this.map.getPath(this.selectedActor, x, y); Collections.reverse(path); - for (int i=0; i<this.selectedActor.getAgility(); i++) { + for (int i=0; i<this.selectedActor.getSkills().agility; i++) { path.get(i).setSelected(true); if (i == path.size()-1) { break; |