[AFR] Implemented Yuan-Ti Malison

This commit is contained in:
Daniel Bomar 2021-07-05 12:33:09 -05:00
parent 724daef125
commit 364b456ef6
No known key found for this signature in database
GPG key ID: C86C8658F4023918
4 changed files with 80 additions and 8 deletions

View file

@ -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";
}
}