Commit 2d9d53a1 authored by swordshine's avatar swordshine

Update Hollow One

parent d56568b4
......@@ -462,12 +462,9 @@ public class AbilityUtils {
players.remove(game.getPhaseHandler().getPlayerTurn());
val = CardFactoryUtil.playerXCount(players, calcX[1], card);
}
else if (hType.startsWith("PropertyYou") && !(ability instanceof SpellAbility)) {
// Related to the controller of the card with ability when the ability is static (or otherwise not a SpellAbility)
// TODO: This doesn't work in situations when the controller of the card is different from the spell caster
// (e.g. opponent's Hollow One exiled by Hostage Taker - cost reduction will not work in this scenario, requires
// a more significant rework).
players.add(card.getController());
else if (hType.startsWith("PropertyYou") && ability instanceof SpellAbility) {
// Hollow One
players.add(((SpellAbility) ability).getActivatingPlayer());
val = CardFactoryUtil.playerXCount(players, calcX[1], card);
}
else if (hType.startsWith("Property") && ability instanceof SpellAbility) {
......
......@@ -381,6 +381,9 @@ public class CostAdjustment {
} else if ("Undaunted".equals(amount)) {
value = card.getController().getOpponents().size();
} else if (staticAbility.hasParam("Relative")) {
// TODO: update cards with "This spell costs X less to cast...if you..."
// The caster is sa.getActivatingPlayer()
// cards like Hostage Taker can cast spells from other players.
value = AbilityUtils.calculateAmount(hostCard, amount, sa);
} else {
value = AbilityUtils.calculateAmount(hostCard, amount, staticAbility);
......
......@@ -2,8 +2,8 @@ Name:Hollow One
ManaCost:5
Types:Artifact Creature Golem
PT:4/4
S:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ Y | EffectZone$ All | Description$ CARDNAME costs {2} less to cast for each card you've cycled or discarded this turn.
S:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ Y | Relative$ True | EffectZone$ All | Description$ This spell costs {2} less to cast for each card you've cycled or discarded this turn.
K:Cycling:2
SVar:Y:PlayerCountPropertyYou$CardsDiscardedThisTurn/Twice
SVar:Picture:http://www.wizards.com/global/images/magic/general/hollow_one.jpg
Oracle:Hollow One costs {2} less to cast for each card you've cycled or discarded this turn.\nCycling {2} ({2}, Discard this card: Draw a card.)
\ No newline at end of file
Oracle:This spell costs {2} less to cast for each card you've cycled or discarded this turn.\nCycling {2} ({2}, Discard this card: Draw a card.)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment