* Jeweled Lotus - fixed that mana can't be used to cast commanders without normal mana (#7272);

This commit is contained in:
Oleg Agafonov 2020-12-22 23:22:41 +04:00
parent 736901efcf
commit 347a3b1e1a
5 changed files with 104 additions and 9 deletions

View file

@ -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;
}