forked from External/mage
Use generics to ensure the correct class types stored inside the costs tags.
This commit is contained in:
parent
193a19104c
commit
660288dfd7
12 changed files with 26 additions and 29 deletions
|
|
@ -721,12 +721,6 @@ public abstract class AbilityImpl implements Ability {
|
|||
}
|
||||
costsTagMap.put(tag, value);
|
||||
}
|
||||
public Object getCostsTagOrDefault(String tag, Object defaultValue){
|
||||
if (costsTagMap != null && costsTagMap.containsKey(tag)){
|
||||
return costsTagMap.get(tag);
|
||||
}
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Effects getEffects() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue