Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions in functions: get error about only one action per turn #94

Open
Person-93 opened this issue May 22, 2016 · 0 comments
Open

Actions in functions: get error about only one action per turn #94

Person-93 opened this issue May 22, 2016 · 0 comments

Comments

@Person-93
Copy link

Person-93 commented May 22, 2016

I tried to call warrior.bind! from a method of a class that I defined, but it only worked once. When it got to turn two, I got an error stating that I can only perform one action per turn.

(eval):2:in 'bind!': Only one action can be performed per turn. (RuntimeError)

I was playing level 3 in the intermediate tower.

When I changed it so that it was calling warrior.bind! directly from play_turn it worked.

The code is attached.
player.rb.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant