- Added Whipkeeper.

This commit is contained in:
Sloth
2013-03-22 21:42:41 +00:00
parent 72d38b34a3
commit 51d607ff1e
4 changed files with 22 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -12045,6 +12045,7 @@ res/cardsfolder/w/whip_spine_drake.txt svneol=native#text/plain
res/cardsfolder/w/whip_vine.txt svneol=native#text/plain
res/cardsfolder/w/whipcorder.txt svneol=native#text/plain
res/cardsfolder/w/whipflare.txt svneol=native#text/plain
res/cardsfolder/w/whipkeeper.txt -text
res/cardsfolder/w/whiplash_trap.txt svneol=native#text/plain
res/cardsfolder/w/whipstitched_zombie.txt svneol=native#text/plain
res/cardsfolder/w/whiptail_moloch.txt svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Whipkeeper
ManaCost:2 R R
Types:Creature Dwarf
PT:1/1
A:AB$ DealDamage | Cost$ T | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ X | References$ X | SpellDescription$ CARDNAME deals damage to target creature equal to the damage already dealt to it this turn.
SVar:X:Targeted$TotalDamageReceivedThisTurn
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/whipkeeper.jpg
Oracle:{T}: Whipkeeper deals damage to target creature equal to the damage already dealt to it this turn.

View File

@@ -7675,6 +7675,14 @@ public class Card extends GameEntity implements Comparable<Card> {
this.receivedDamageFromThisTurn.clear();
}
public final int getTotalDamageRecievedThisTurn() {
int total = 0;
for (int damage : this.receivedDamageFromThisTurn.values()) {
total += damage;
}
return total;
}
/**
* <p>
* addDealtDamageToThisTurn.

View File

@@ -1537,6 +1537,10 @@ public class CardFactoryUtil {
return CardFactoryUtil.doXMath(c.getTotalDamageDoneBy(), m, c);
}
if (sq[0].equals("TotalDamageReceivedThisTurn")) {
return CardFactoryUtil.doXMath(c.getTotalDamageRecievedThisTurn(), m, c);
}
// Count$YourPoisonCounters
if (sq[0].contains("YourPoisonCounters")) {
return CardFactoryUtil.doXMath(cardController.getPoisonCounters(), m, c);