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;
|
boolean validTgtFound = false;
|
||||||
while (sa != null && !validTgtFound) {
|
while (sa != null && !validTgtFound) {
|
||||||
for (final Card tgt : sa.getTargets().getTargetCards()) {
|
for (final GameEntity ge : sa.getTargets().getTargetEntities()) {
|
||||||
if (matchesValid(tgt, getParam("TargetsValid").split(","))) {
|
if (matchesValid(ge, getParam("TargetsValid").split(","))) {
|
||||||
validTgtFound = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (final Player p : sa.getTargets().getTargetPlayers()) {
|
|
||||||
if (matchesValid(p, getParam("TargetsValid").split(","))) {
|
|
||||||
validTgtFound = true;
|
validTgtFound = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user