mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
GUI: fixed that some triggered stack abilities do not show related/targeted objects in card hint (related to #12544)
This commit is contained in:
parent
858b0aadde
commit
dc86ec1081
1 changed files with 1 additions and 3 deletions
|
|
@ -92,9 +92,7 @@ public class StackAbilityView extends CardView {
|
||||||
List<UUID> targetList = new ArrayList<>();
|
List<UUID> targetList = new ArrayList<>();
|
||||||
for (Effect effect : mode.getEffects()) {
|
for (Effect effect : mode.getEffects()) {
|
||||||
TargetPointer targetPointer = effect.getTargetPointer();
|
TargetPointer targetPointer = effect.getTargetPointer();
|
||||||
if (targetPointer instanceof FixedTarget) {
|
targetList.addAll(targetPointer.getTargets(game, ability));
|
||||||
targetList.add(((FixedTarget) targetPointer).getTarget());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!targetList.isEmpty()) {
|
if (!targetList.isEmpty()) {
|
||||||
overrideTargets(targetList);
|
overrideTargets(targetList);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue