mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
updated targeting for cards that damage
This commit is contained in:
parent
7212b02e53
commit
5fe607e852
548 changed files with 1127 additions and 1133 deletions
|
|
@ -913,7 +913,7 @@ public class TestPlayer implements Player {
|
|||
if (target.getTargetController() != null && target.getAbilityController() != null) {
|
||||
abilityControllerId = target.getAbilityController();
|
||||
}
|
||||
if (target instanceof TargetPlayer || target instanceof TargetCreatureOrPlayer) {
|
||||
if (target instanceof TargetPlayer || target instanceof TargetAnyTarget) {
|
||||
for (String targetDefinition : targets) {
|
||||
if (targetDefinition.startsWith("targetPlayer=")) {
|
||||
String playerName = targetDefinition.substring(targetDefinition.indexOf("targetPlayer=") + 13);
|
||||
|
|
@ -929,7 +929,7 @@ public class TestPlayer implements Player {
|
|||
}
|
||||
|
||||
}
|
||||
if ((target instanceof TargetPermanent) || (target instanceof TargetPermanentOrPlayer) || (target instanceof TargetCreatureOrPlayer)) {
|
||||
if ((target instanceof TargetPermanent) || (target instanceof TargetPermanentOrPlayer) || (target instanceof TargetAnyTarget)) {
|
||||
for (String targetDefinition : targets) {
|
||||
String[] targetList = targetDefinition.split("\\^");
|
||||
boolean targetFound = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue