forked from External/mage
* Jeweled Lotus - fixed that mana can't be used to cast commanders without normal mana (#7272);
This commit is contained in:
parent
736901efcf
commit
347a3b1e1a
5 changed files with 104 additions and 9 deletions
|
|
@ -436,19 +436,23 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
|
||||
@Override
|
||||
public UUID getOwnerId(MageObject object) {
|
||||
if (object instanceof Card) {
|
||||
return ((Card) object).getOwnerId();
|
||||
}
|
||||
if (object instanceof Spell) {
|
||||
return ((Spell) object).getOwnerId();
|
||||
}
|
||||
|
||||
if (object instanceof StackObject) {
|
||||
// maybe this is not correct in all cases?
|
||||
return ((StackObject) object).getControllerId();
|
||||
}
|
||||
|
||||
if (object instanceof CommandObject) {
|
||||
return ((CommandObject) object).getControllerId();
|
||||
}
|
||||
|
||||
if (object instanceof Card) {
|
||||
return ((Card) object).getOwnerId();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue