use of mage.abilities.keyword.ReboundAbility in project mage by magefree.
the class NarsetTranscendentGainReboundEffect method addReboundAbility.
private void addReboundAbility(Card card, Game game) {
boolean found = false;
for (Ability ability : card.getAbilities(game)) {
if (ability instanceof ReboundAbility) {
found = true;
break;
}
}
if (!found) {
Ability ability = new ReboundAbility();
game.getState().addOtherAbility(card, ability);
}
}
use of mage.abilities.keyword.ReboundAbility in project mage by magefree.
the class GainReboundEffect method addReboundAbility.
private void addReboundAbility(Card card, Game game) {
if (CastThroughTime.filter.match(card, game)) {
boolean found = card.getAbilities(game).containsClass(ReboundAbility.class);
if (!found) {
Ability ability = new ReboundAbility();
game.getState().addOtherAbility(card, ability);
}
}
}
use of mage.abilities.keyword.ReboundAbility in project mage by magefree.
the class TaigamOjutaiMasterGainReboundEffect method addReboundAbility.
private void addReboundAbility(Card card, Ability source, Game game) {
boolean found = card.getAbilities(game).containsClass(ReboundAbility.class);
if (!found) {
Ability ability = new ReboundAbility();
game.getState().addOtherAbility(card, ability);
}
}
use of mage.abilities.keyword.ReboundAbility in project mage by magefree.
the class TrailOfTheMageRingsReboundEffect method addReboundAbility.
private void addReboundAbility(Card card, Ability source, Game game) {
if (filter.match(card, game)) {
boolean found = card.getAbilities(game).containsClass(ReboundAbility.class);
if (!found) {
Ability ability = new ReboundAbility();
game.getState().addOtherAbility(card, ability);
}
}
}
Aggregations