mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
SpellAbility: add hasReplacingObject
This commit is contained in:
@@ -574,6 +574,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
public HashMap<String, Object> getReplacingObjects() {
|
||||
return replacingObjects;
|
||||
}
|
||||
public boolean hasReplacingObject(final String type) {
|
||||
return replacingObjects.containsKey(type);
|
||||
}
|
||||
public Object getReplacingObject(final String type) {
|
||||
final Object res = replacingObjects.get(type);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user