mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
3 DKA
This commit is contained in:
parent
e61ad860b1
commit
af6ef52215
4 changed files with 247 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
* @author Loki
|
||||
*/
|
||||
public class FatefulHourCondition implements Condition {
|
||||
private static FatefulHourCondition fInstance = new FatefulHourCondition();
|
||||
|
||||
public static Condition getInstance() {
|
||||
return fInstance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
return player != null && player.getLife() <= 5;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue