mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Added Whipkeeper.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/w/whipkeeper.txt
Normal file
9
res/cardsfolder/w/whipkeeper.txt
Normal 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.
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user