fix Niv-Mizzet Guildpact dealing damage to both targets

Fix #12329
This commit is contained in:
Susucre 2024-05-29 20:23:23 +02:00
parent 4cbe45e723
commit a3282ee6a1
2 changed files with 11 additions and 12 deletions

View file

@ -24,7 +24,7 @@ public class DamageTargetEffect extends OneShotEffect {
protected DynamicValue amount;
protected boolean preventable;
protected String targetDescription;
protected boolean useOnlyTargetPointer; // why do we ignore targetPointer by default??
protected boolean useOnlyTargetPointer; // TODO: investigate why do we ignore targetPointer by default??
protected String sourceName = "{this}";
public DamageTargetEffect(int amount) {
@ -107,6 +107,7 @@ public class DamageTargetEffect extends OneShotEffect {
this.sourceName = sourceName;
}
// TODO: this should most likely be refactored to not be needed and always use target pointer.
public Effect setUseOnlyTargetPointer(boolean useOnlyTargetPointer) {
this.useOnlyTargetPointer = useOnlyTargetPointer;
return this;