forked from External/mage
fixes
This commit is contained in:
parent
2b1d3f6b37
commit
ff33253646
37 changed files with 240 additions and 84 deletions
|
|
@ -121,6 +121,18 @@ public class SpellStack extends Stack<StackObject> {
|
|||
return null;
|
||||
}
|
||||
|
||||
public Spell getSpell(UUID id) {
|
||||
for (StackObject stackObject: this) {
|
||||
if (stackObject.getId().equals(id)) {
|
||||
if (stackObject instanceof Spell)
|
||||
return (Spell)stackObject;
|
||||
else
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public SpellStack copy() {
|
||||
return new SpellStack(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue