[MAT] Implement Deification, fix access to counter removal damage checkers (#12215)

* Make ChoosePlaneswalkerTypeEffect

* Make REMOVE_COUNTER and REMOVE_COUNTERS events so they can be replaced/modified

* Deification initial attempt, need to filter for damage

* add optional damage flag to removeCounters

* wrap logs in sim check

* check that planeswalker is chosen subtype

* cast to RemoveCountersEvent and reduce indents

* use counterRemovedDueToDamage

* add tests

* make other counterRemovedDueToDamage headers public

* remove logs

* remove isSimulation check from informPlayers

* remove logger

* make chosen planeswalker type predicate

* move event modification to replaceEvent
This commit is contained in:
jimga150 2024-05-03 22:15:00 -04:00 committed by GitHub
parent 85cad4ff1e
commit 82069ef2e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 333 additions and 3 deletions

View file

@ -26,7 +26,7 @@ public class RemoveCountersEvent extends GameEvent {
this.isDamage = isDamage;
}
boolean counterRemovedDueToDamage(){
public boolean counterRemovedDueToDamage(){
return this.isDamage;
}