forked from External/mage
* Improved handling of asThoughtAs approval by abilities that allows a clear and easy assignment of the approving effect.
This commit is contained in:
parent
0565d32f55
commit
8105d8b26c
117 changed files with 523 additions and 442 deletions
33
Mage/src/main/java/mage/ApprovingObject.java
Normal file
33
Mage/src/main/java/mage/ApprovingObject.java
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package mage;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class ApprovingObject {
|
||||
|
||||
private final Ability approvingAbility;
|
||||
private final MageObjectReference approvingMageObjectReference;
|
||||
|
||||
public ApprovingObject(Ability source, Game game) {
|
||||
this.approvingAbility = source;
|
||||
this.approvingMageObjectReference = new MageObjectReference(source.getSourceId(), game);
|
||||
}
|
||||
|
||||
public Ability getApprovingAbility() {
|
||||
return approvingAbility;
|
||||
}
|
||||
|
||||
public MageObjectReference getApprovingMageObjectReference() {
|
||||
return approvingMageObjectReference;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue