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

'NoneType' object has no attribute 'is_valid' #112

Open
Ragowit opened this issue Apr 24, 2015 · 2 comments
Open

'NoneType' object has no attribute 'is_valid' #112

Ragowit opened this issue Apr 24, 2015 · 2 comments

Comments

@Ragowit
Copy link
Collaborator

Ragowit commented Apr 24, 2015

Tried to add the replay function into my AI fork. This is an error I got, but I don't know if I messed something up or if it's a real error in HearthBreaker since I have never seen this error message before.

https://gist.github.com/Ragowit/5f53106a2cfe2ed2a58f

@Ragowit
Copy link
Collaborator Author

Ragowit commented Jun 21, 2015

The bug in the replay file is that the game plays Shattered Sun Cleric, but no target is set in the replay so it targets None, which generates the error.

@Ragowit
Copy link
Collaborator Author

Ragowit commented Jun 21, 2015

The replay records the play from the event "card_played", but no target has been made by this point. A current_target for the minion card is set in the card.use() function after the trigger of the event.

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