Merge pull request #4803 from Zzooouhh/Zzooouhh-psy

Implemented Psychic Battle
This commit is contained in:
LevelX2 2018-04-28 13:24:58 +02:00 committed by GitHub
commit 15fa8fa124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 195 additions and 0 deletions

View file

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

View file

@ -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();