mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Fervent Champion - Fixed that it's possible to equip the Champion also without having the regular mana (#6698).
This commit is contained in:
parent
6e68e038b6
commit
82dfd76ee3
4 changed files with 58 additions and 13 deletions
|
|
@ -90,14 +90,22 @@ class FerventChampionEffect extends CostModificationEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||
return abilityToModify instanceof EquipAbility
|
||||
&& abilityToModify.isControlledBy(source.getControllerId())
|
||||
&& abilityToModify
|
||||
if (abilityToModify instanceof EquipAbility
|
||||
&& abilityToModify.isControlledBy(source.getControllerId())) {
|
||||
if (game != null && game.inCheckPlayableState()) {
|
||||
return !abilityToModify.getTargets().isEmpty() &&
|
||||
abilityToModify.getTargets().get(0).canTarget(source.getSourceId(), abilityToModify, game);
|
||||
} else {
|
||||
return abilityToModify
|
||||
.getTargets()
|
||||
.stream()
|
||||
.map(Target::getTargets)
|
||||
.flatMap(Collection::stream)
|
||||
.anyMatch(source.getSourceId()::equals);
|
||||
.anyMatch(source.getSourceId()::equals);
|
||||
}
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public final class SwordOfFireAndIce extends CardImpl {
|
|||
// Whenever equipped creature deals combat damage to a player, Sword of Fire
|
||||
// and Ice deals 2 damage to any target and you draw a card.
|
||||
this.addAbility(new SwordOfFireAndIceAbility());
|
||||
// Equip
|
||||
// Equip {2}
|
||||
this.addAbility(new EquipAbility(Outcome.Benefit, new GenericManaCost(2)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue