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

Update game engine to check for illegal attachments on provinces #5

Merged

Conversation

Syrail
Copy link

@Syrail Syrail commented Nov 11, 2019

No description provided.

@Syrail Syrail changed the title Card/tel/total warfare Fix for Voice of the Ancestors infinite recursino Nov 11, 2019
@Syrail Syrail changed the title Fix for Voice of the Ancestors infinite recursino Fix for Voice of the Ancestors infinite recursion Nov 11, 2019
Syrail and others added 2 commits November 11, 2019 00:48
@Syrail Syrail changed the title Fix for Voice of the Ancestors infinite recursion Update game engine to check for illegal attachments on provinces Nov 11, 2019
@The-Outcast The-Outcast merged commit f9e5369 into The-Outcast:card/tel/Total-Warfare Nov 11, 2019
The-Outcast added a commit that referenced this pull request Nov 20, 2019
* TEL - Kitsu Motso

- Work in progress

* Trying to get provinces passed as attachable cards.

* Add attachment conditions

* Total Warfare happy path

* Total Warfare testing

Also trying to get flipping and discarding of attachments to work.

* Remove references to attachToProvinceAction

* Don't discard attachments on flip

* Fix tests and attaching to province

* Go back to checking cardtype for province to attach to

* Fix code style breaches

* Fix lint errors

* apply attachment limit and more tests

* add trait limits to attachment conditions

* add test for VoH double-attachment crash

* Added test to verify detachment of second attached Watch Commander (#4)

* Remove lasting effects in leavePlayEventHandler

Done as a test to see if this fixes the issue around turning dynasty characters into attachments (VotA)

* Update game engine to check for illegal attachments on provinces (#5)

* Cards in discard piles use printed type to determine location legality.

* Fix: Allow provinces to check for and remove illegal attachments.
Fix: when discarding cards, fallback to type if printedType doesn't exist.
Minor test cleanup

* Corrected log message. It not English so good.

* Also render stronghold province attachments and don't reveal facedown name

* Rework traitlimit definition

* - Move attachment functionality to Basecard

* Fix linting errors
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

Successfully merging this pull request may close these issues.

2 participants