tests: added test and todo for Devoted Druid bug (related to #13583)

This commit is contained in:
Oleg Agafonov 2025-04-30 07:45:18 +04:00
parent 4941a0dd8f
commit d0fd0c4023
4 changed files with 103 additions and 4 deletions

View file

@ -802,7 +802,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
game.fireEvent(addedOneEvent);
} else {
finalAmount--;
returnCode = false;
returnCode = false; // restricted by ADD_COUNTER
}
}
if (finalAmount > 0) {
@ -810,10 +810,15 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
addedAllEvent.setFlag(isEffectFlag);
game.fireEvent(addedAllEvent);
} else {
// TODO: must return true, cause it's not replaced here (rework Fangs of Kalonia and Spectacular Showdown)
// example from Devoted Druid
// If you can put counters on it, but that is modified by an effect (such as that of Vizier of Remedies),
// you can activate the ability even if paying the cost causes no counters to be put on Devoted Druid.
// (2018-12-07)
returnCode = false;
}
} else {
returnCode = false;
returnCode = false; // restricted by ADD_COUNTERS
}
return returnCode;
}