Open Masclins opened 6 years ago
Description
New ability created: Now cards can have an ability that makes their power change when played on specific rows.
Rows can have a :type and this ability checks if the card had been played on a row of the appropriate type.
:type
Also, I changed (add-power so all abilities recieve game-state and play.
(add-power
game-state
play
Issues Resolved
Resolves #150
Hotspots
(rules.abilities/type-add-power is probably what's most relevant.
(rules.abilities/type-add-power
Still, I find it very important to double-check that we have all the tests we'd want to.
Checklist for contribution requirements
Errors on tests now are because it's implemented that all abilities require a target. I'll change that when #165 is merged, since I'll use what's implemented there (that returns the number of needed targets)
Description
New ability created: Now cards can have an ability that makes their power change when played on specific rows.
Rows can have a
:type
and this ability checks if the card had been played on a row of the appropriate type.Also, I changed
(add-power
so all abilities recievegame-state
andplay
.Issues Resolved
Resolves #150
Hotspots
(rules.abilities/type-add-power
is probably what's most relevant.Still, I find it very important to double-check that we have all the tests we'd want to.
Checklist for contribution requirements