forked from External/mage
Reworked ability source object handling.
This commit is contained in:
parent
e6b78d7a2e
commit
26a93d4427
19 changed files with 292 additions and 288 deletions
|
|
@ -479,16 +479,7 @@ public interface Ability extends Controllable, Serializable {
|
|||
boolean activateAlternateOrAdditionalCosts(MageObject sourceObject, boolean noMana, Player controller, Game game);
|
||||
|
||||
/**
|
||||
* Sets the object that actually existed while a ability triggerd or an
|
||||
* ability was activated.
|
||||
*
|
||||
* @param mageObject
|
||||
* @param game
|
||||
*/
|
||||
void setSourceObject(MageObject mageObject, Game game);
|
||||
|
||||
/**
|
||||
* Returns the object that actually existed while a ability triggerd or an
|
||||
* Returns the object that actually existed while a ability triggered or an
|
||||
* ability was activated. If not set yet, the current object will be
|
||||
* retrieved from the game.
|
||||
*
|
||||
|
|
@ -497,6 +488,8 @@ public interface Ability extends Controllable, Serializable {
|
|||
*/
|
||||
MageObject getSourceObject(Game game);
|
||||
|
||||
void setSourceObjectZoneChangeCounter(int zoneChangeCounter);
|
||||
|
||||
int getSourceObjectZoneChangeCounter();
|
||||
|
||||
/**
|
||||
|
|
@ -520,6 +513,8 @@ public interface Ability extends Controllable, Serializable {
|
|||
*/
|
||||
Permanent getSourcePermanentIfItStillExists(Game game);
|
||||
|
||||
Permanent getSourcePermanentOrLKI(Game game);
|
||||
|
||||
String getTargetDescription(Targets targets, Game game);
|
||||
|
||||
void setCanFizzle(boolean canFizzle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue