aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_agility.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_agility.go')
-rw-r--r--internal/game/cmd_agility.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_agility.go b/internal/game/cmd_agility.go
index 3bd777f..084c5cf 100644
--- a/internal/game/cmd_agility.go
+++ b/internal/game/cmd_agility.go
@@ -9,7 +9,7 @@ import (
)
func (g *Game) doObstacle(sess *net.Session, verb string) {
- p := sess.Player.(*player.Player)
+ p := sess.Player
if combat.GetCombat(p.Name) != nil {
sess.WriteLine("You can't do that during combat!")
@@ -29,9 +29,9 @@ func (g *Game) doObstacle(sess *net.Session, verb string) {
}
if p.Action != nil {
- g.CancelAction(p)
+ g.cancelAction(p)
}
- g.CancelBackgroundAction(p)
+ g.cancelBackgroundAction(p)
g.startObstacle(sess, p, info)
}