mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[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:
parent
44839647ca
commit
8267d7d770
6 changed files with 90 additions and 98 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue