use of mage.game.permanent.token.GiantWarriorToken in project mage by magefree.
the class FeudkillersVerdictEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
controller.gainLife(10, game, source);
boolean moreLife = false;
for (UUID opponentId : game.getOpponents(source.getControllerId())) {
Player opponent = game.getPlayer(opponentId);
if (opponent != null) {
if (controller.getLife() > opponent.getLife()) {
moreLife = true;
break;
}
}
}
if (moreLife) {
return new CreateTokenEffect(new GiantWarriorToken(), 1).apply(game, source);
}
return true;
}
return false;
}
Aggregations