forked from External/mage
Improved commander support for mdf/split/adventure cards (additional fixes for ac98a3a31a)
This commit is contained in:
parent
9416c6140a
commit
9b8df48183
12 changed files with 148 additions and 60 deletions
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
package mage.game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -8,11 +6,13 @@ import java.util.UUID;
|
|||
* @author magenoxx_at_gmail.com
|
||||
*/
|
||||
public interface Controllable {
|
||||
|
||||
UUID getControllerId();
|
||||
|
||||
UUID getId();
|
||||
|
||||
default boolean isControlledBy(UUID controllerID){
|
||||
if(getControllerId() == null){
|
||||
default boolean isControlledBy(UUID controllerID) {
|
||||
if (getControllerId() == null) {
|
||||
return false;
|
||||
}
|
||||
return getControllerId().equals(controllerID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue