mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Clean up
This commit is contained in:
@@ -126,15 +126,8 @@ public class TriggerSpellAbilityCastOrCopy extends Trigger {
|
||||
|
||||
boolean validTgtFound = false;
|
||||
while (sa != null && !validTgtFound) {
|
||||
for (final Card tgt : sa.getTargets().getTargetCards()) {
|
||||
if (matchesValid(tgt, getParam("TargetsValid").split(","))) {
|
||||
validTgtFound = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
for (final Player p : sa.getTargets().getTargetPlayers()) {
|
||||
if (matchesValid(p, getParam("TargetsValid").split(","))) {
|
||||
for (final GameEntity ge : sa.getTargets().getTargetEntities()) {
|
||||
if (matchesValid(ge, getParam("TargetsValid").split(","))) {
|
||||
validTgtFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user