mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
refactor: fixed dies events support in single cards (part 7, related to #13089, continue from #13088);
This commit is contained in:
parent
b571080260
commit
8af7a492c8
7 changed files with 162 additions and 1 deletions
|
|
@ -2021,10 +2021,12 @@ public class VerifyCardDataTest {
|
|||
boolean isPutToGraveAbility = rules.contains("put into")
|
||||
&& rules.contains("graveyard")
|
||||
&& rules.contains("from the battlefield");
|
||||
boolean isLeavesBattlefield = rules.contains("leaves the battlefield");
|
||||
isLeavesBattlefield = false; // TODO: remove and fix all bad cards
|
||||
if (triggeredAbility.isLeavesTheBattlefieldTrigger()) {
|
||||
// TODO: add check for wrongly enabled settings too?
|
||||
} else {
|
||||
if (isDiesAbility || isPutToGraveAbility) {
|
||||
if (isDiesAbility || isPutToGraveAbility || isLeavesBattlefield) {
|
||||
fail(card, "abilities", "dies related trigger must use setLeavesTheBattlefieldTrigger(true) and possibly override isInUseableZone - "
|
||||
+ triggeredAbility.getClass().getSimpleName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue