- Improved the script pf Quietus Spike.

This commit is contained in:
Sloth
2013-03-13 22:58:45 +00:00
parent d6b249e897
commit 945d5a5f56
2 changed files with 1 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ K:Equip 3
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddKeyword$ Deathtouch | Description$ Equipped creature has deathtouch. Whenever equipped creature deals combat damage to a player, that player loses half his or her life, rounded up.
T:Mode$ DamageDone | ValidSource$ Creature.EquippedBy | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigLoseLifeOpp | TriggerDescription$ Whenever equipped creature deals combat damage to a player, that player loses half his or her life, rounded up.
SVar:TrigLoseLifeOpp:AB$ LoseLife | Cost$ 0 | Defined$ TriggeredTarget | LifeAmount$ QuietusX | References$ QuietusX
SVar:QuietusX:Count$DefenderLifeTotal/HalfUp
SVar:QuietusX:TriggeredTarget$LifeTotal/HalfUp
SVar:Picture:http://www.wizards.com/global/images/magic/general/quietus_spike.jpg
Oracle:Equipped creature has deathtouch.\nWhenever equipped creature deals combat damage to a player, that player loses half his or her life, rounded up.\nEquip {3}
SetInfo:PC2 Rare

View File

@@ -1568,12 +1568,6 @@ public class CardFactoryUtil {
return CardFactoryUtil.doXMath(oppController.getLife(), m, c);
}
// Count$DefenderLifeTotal
if (sq[0].contains("DefenderLifeTotal")) {
Player defender = Singletons.getModel().getGame().getCombat().getDefendingPlayerRelatedTo(c);
return CardFactoryUtil.doXMath(defender.getLife(), m, c);
}
// Count$TargetedLifeTotal (targeted player's life total)
if (sq[0].contains("TargetedLifeTotal")) {
for (final SpellAbility sa : c.getCharacteristics().getSpellAbility()) {