[REX] Implement Indominus Rex, Alpha (#12119)

* Implement Indominus Rex, Alpha

* Add draw ability

* Add test

* Add draw verification

* fix errant comment

* null check

* switch to EntersBattlefieldAbility

* Fix test, dont have to pick triggers now

* use AsEntersBattlefieldAbility

* move tests and rename

* use appliedEffects in addCounter call

* change AI hint

* use game in getAbilities call

* make ability text static, remove counter check

* add comments on ability cards and add test case with subset of checked abilities

* Update order of operations--discard, then add counters

* add more tests (Nullhide Ferox, Madness)

* check cards after move to graveyard

* test for graveyard movement

* check for hexproof base class and add test

* refactor Indominus to make ability counters for each ability it comes across that is an instance of one of the checked abilites (counting HexproofBaseAbility)

* remove commented code
This commit is contained in:
jimga150 2024-05-04 23:25:35 -04:00 committed by GitHub
parent dc13384c52
commit 07915394c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 453 additions and 3 deletions

View file

@ -9,7 +9,7 @@ public class AbilityCounter extends Counter {
private final Ability ability;
AbilityCounter(Ability ability, int count) {
public AbilityCounter(Ability ability, int count) {
super(makeName(ability.getRule()), count);
this.ability = ability;
}