mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
[DMU] Implemented Archangel of Wrath (#9385)
* [DMU] Implemented Archangel of Wrath * fix kicker cost * small change to text generation
This commit is contained in:
parent
7f3b03782e
commit
a43eb00c1c
152 changed files with 238 additions and 167 deletions
|
|
@ -5,24 +5,30 @@ import mage.abilities.condition.Condition;
|
|||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.game.Game;
|
||||
|
||||
|
||||
/**
|
||||
* Describes condition when spell was kicked.
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public enum KickedCondition implements Condition {
|
||||
ONCE(1, ""),
|
||||
TWICE(2, "twice");
|
||||
|
||||
instance;
|
||||
private final int kickedCount;
|
||||
private final String text;
|
||||
|
||||
KickedCondition(int kickedCount, String text) {
|
||||
this.kickedCount = kickedCount;
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return KickerAbility.getSourceObjectKickedCount(game, source) > 0;
|
||||
return KickerAbility.getSourceObjectKickedCount(game, source) >= kickedCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{this} was kicked";
|
||||
return "{this} was kicked" + (text.isEmpty() ? "" : " " + text);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue