mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Merge pull request #4803 from Zzooouhh/Zzooouhh-psy
Implemented Psychic Battle
This commit is contained in:
commit
15fa8fa124
4 changed files with 195 additions and 0 deletions
|
|
@ -27,6 +27,8 @@ import java.util.UUID;
|
|||
* @author LevelX2
|
||||
*/
|
||||
public abstract class StackObjImpl implements StackObject {
|
||||
|
||||
private boolean targetChanged; // for Psychic Battle
|
||||
|
||||
/**
|
||||
* Choose new targets for a stack Object
|
||||
|
|
@ -271,4 +273,14 @@ public abstract class StackObjImpl implements StackObject {
|
|||
@Override
|
||||
public void removePTCDA() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTargetChanged() {
|
||||
return targetChanged;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setTargetChanged(boolean targetChanged) {
|
||||
this.targetChanged = targetChanged;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ public interface StackObject extends MageObject, Controllable {
|
|||
boolean chooseNewTargets(Game game, UUID playerId, boolean forceChange, boolean onlyOneTarget, FilterPermanent filterNewTarget);
|
||||
|
||||
StackObject createCopyOnStack(Game game, Ability source, UUID newControllerId, boolean chooseNewTargets);
|
||||
|
||||
boolean isTargetChanged();
|
||||
|
||||
void setTargetChanged(boolean targetChanged);
|
||||
|
||||
@Override
|
||||
StackObject copy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue