* GUI: added additional target arrows to stack objects (now you can see triggered or affected permanents and another related links, see #6918);

* Amulet of Vigor - improved combo support for multi triggers (now you can see triggered land name and chooses stack order, see #6918);
This commit is contained in:
Oleg Agafonov 2020-12-17 03:05:58 +04:00
parent 9c56ff90d3
commit a0a1dcb39f
12 changed files with 177 additions and 96 deletions

View file

@ -0,0 +1,33 @@
package mage.target.targetpointer;
import java.util.HashMap;
import java.util.Map;
/**
* @author JayDi85
*/
public abstract class TargetPointerImpl implements TargetPointer {
// Store custom data here. Use it to keep unique values for ability instances on stack (example: Gruul Ragebeast)
Map<String, String> data = new HashMap<>();
public TargetPointerImpl() {
super();
}
public TargetPointerImpl(final TargetPointerImpl targetPointer) {
super();
this.data.putAll(targetPointer.data);
}
@Override
public String getData(String key) {
return this.data.getOrDefault(key, "");
}
@Override
public TargetPointer withData(String key, String value) {
this.data.put(key, value);
return this;
}
}