[DRC] Implement Priest of the Crossing (#13394)

* Implement Priest of the Crossing

* Add common dynamic value for "creatures that died under your control this turn"
This commit is contained in:
4825764518 2025-03-13 01:01:25 -04:00 committed by GitHub
parent 44839647ca
commit 8267d7d770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 90 additions and 98 deletions

View file

@ -0,0 +1,33 @@
package mage.abilities.dynamicvalue.common;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
import mage.game.Game;
import mage.watchers.common.CreaturesDiedWatcher;
public enum CreaturesYouControlDiedCount implements DynamicValue {
instance;
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
return game.getState()
.getWatcher(CreaturesDiedWatcher.class)
.getAmountOfCreaturesDiedThisTurnByController(sourceAbility.getControllerId());
}
@Override
public CreaturesYouControlDiedCount copy() {
return this;
}
@Override
public String getMessage() {
return "creature that died under your control this turn";
}
@Override
public String toString() {
return "1";
}
}