forked from External/mage
add logic to check zcc
This commit is contained in:
parent
f72f88cb35
commit
476136b766
1 changed files with 5 additions and 4 deletions
|
|
@ -72,13 +72,14 @@ public class SetBasePowerToughnessSourceEffect extends ContinuousEffectImpl {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
MageObject mageObject = game.getPermanentEntering(source.getSourceId());
|
||||
if (mageObject == null) {
|
||||
if (duration == Duration.Custom || isTemporary()) {
|
||||
mageObject = game.getPermanent(source.getSourceId());
|
||||
} else {
|
||||
if (this.characterDefining || this.duration == Duration.WhileOnBattlefield) {
|
||||
// Duration is a workaround for Primal Clay and similar which are incorrectly implemented
|
||||
mageObject = game.getObject(source);
|
||||
} else {
|
||||
mageObject = source.getSourcePermanentIfItStillExists(game);
|
||||
}
|
||||
}
|
||||
if (mageObject == null || (power == null && toughness == null)) {
|
||||
if (mageObject == null) {
|
||||
discard();
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue