implement bronze horse. added IsTargetingSource property.

This commit is contained in:
RedDeckWins
2013-05-19 04:21:40 +00:00
parent c4c2865647
commit f39e6e9fc3
3 changed files with 26 additions and 0 deletions

View File

@@ -5615,6 +5615,18 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!this.dealtDamageToThisTurn.containsKey(source)) {
return false;
}
} else if (property.startsWith("IsTargetingSource")) {
for (final SpellAbility sa : this.getCharacteristics().getSpellAbility()) {
final SpellAbility saTargeting = sa.getSATargetingCard();
if (saTargeting != null) {
for (final Card c : saTargeting.getTarget().getTargetCards()) {
if (c.equals(source)) {
return true;
}
}
}
}
return false;
} else if (property.startsWith("SharesColorWith")) {
if (property.equals("SharesColorWith")) {
if (!this.sharesColorWith(source)) {