mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[AFR] Implemented Yuan-Ti Malison
This commit is contained in:
parent
724daef125
commit
364b456ef6
4 changed files with 80 additions and 8 deletions
|
|
@ -0,0 +1,24 @@
|
|||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public enum SourceAttackingAloneCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return game.getCombat().attacksAlone() && game.getCombat().getAttackers().get(0).equals(source.getSourceId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{this} is attacking alone";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue