mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
implement bronze horse. added IsTargetingSource property.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user