mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed filterListByType dealing with the "Triggered..." argument.
This commit is contained in:
@@ -1739,18 +1739,6 @@ public class AbilityFactory {
|
||||
c = hostCard;
|
||||
}
|
||||
|
||||
// The Wretched
|
||||
else if (defined.equals("TriggeredBlocker.blocking")) {
|
||||
final SpellAbility root = sa.getRootSpellAbility();
|
||||
final Object crd = root.getTriggeringObject("Blocker");
|
||||
// if (AllZoneUtil.getCardState((Card) crd).isBlocking()) {
|
||||
// ;
|
||||
// }
|
||||
// {
|
||||
c = AllZoneUtil.getCardState((Card) crd);
|
||||
// }
|
||||
}
|
||||
|
||||
else if (defined.equals("OriginalHost")) {
|
||||
c = sa.getOriginalHost();
|
||||
}
|
||||
@@ -2513,6 +2501,8 @@ public class AbilityFactory {
|
||||
type = type.replace("TriggeredAttacker", "Card");
|
||||
} else if (type.contains("TriggeredBlocker")) {
|
||||
type = type.replace("TriggeredBlocker", "Card");
|
||||
} else {
|
||||
type = type.replace("Triggered", "Card");
|
||||
}
|
||||
|
||||
} else if (type.contains("Targeted")) {
|
||||
|
||||
Reference in New Issue
Block a user