Add Burning-Eye Zubera and Rushing-Tide Zubera.

This commit is contained in:
elcnesh
2014-07-28 10:29:18 +00:00
parent 13ada02ae1
commit b89326f058
4 changed files with 45 additions and 2 deletions

View File

@@ -101,8 +101,33 @@ public class TriggerChangesZone extends Trigger {
if (!Expressions.compare(actualValue, comparator.substring(0, 2), referenceValue)) {
return false;
}
}
}
// Check amount of damage dealt to the triggered card
if (this.mapParams.containsKey("DamageReceivedCondition")) {
final String cond = this.mapParams.get("DamageReceivedCondition");
if (cond.length() < 3) {
return false;
}
final Card card;
final int rightSide;
try {
card = (Card) runParams2.get("Card");
rightSide = Integer.parseInt(cond.substring(2));
} catch (NumberFormatException | ClassCastException e) {
return false;
}
if (card == null) {
return false;
}
final boolean expr = Expressions.compare(card.getTotalDamageRecievedThisTurn(), cond, rightSide);
if (!expr) {
return false;
}
}
return true;
}