mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 21:42:07 -08:00
[KHM] Implemented Boreal Outrider
This commit is contained in:
parent
241ef4c6eb
commit
567059ea82
4 changed files with 130 additions and 2 deletions
|
|
@ -1013,6 +1013,21 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
|
|||
+ any.getSnowAmount();
|
||||
}
|
||||
|
||||
public boolean checkSnow(ObjectColor color) {
|
||||
if (color.isWhite() && white.getSnowAmount() > 0) {
|
||||
return true;
|
||||
} else if (color.isBlue() && blue.getSnowAmount() > 0) {
|
||||
return true;
|
||||
} else if (color.isBlack() && black.getSnowAmount() > 0) {
|
||||
return true;
|
||||
} else if (color.isRed() && red.getSnowAmount() > 0) {
|
||||
return true;
|
||||
} else if (color.isGreen() && green.getSnowAmount() > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns this objects total mana minus the passed in {@link Mana}'s mana.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -70,10 +70,11 @@ public class SpellCastControllerTriggeredAbility extends TriggeredAbilityImpl {
|
|||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
if (spell != null && filter.match(spell, getSourceId(), getControllerId(), game)) {
|
||||
if (rememberSource) {
|
||||
this.getEffects().setValue("spellCast", spell);
|
||||
if (rememberSourceAsCard) {
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(spell.getCard().getId(), game));
|
||||
this.getEffects().setTargetPointer(new FixedTarget(spell.getCard().getId(), game));
|
||||
} else {
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(spell.getId(), game));
|
||||
this.getEffects().setTargetPointer(new FixedTarget(spell.getId(), game));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue