mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Skyshrout War Beast - Fixed wrong P/T calculation because of wrong land filter.
This commit is contained in:
parent
946503864a
commit
73dcb3ff22
1 changed files with 5 additions and 2 deletions
|
@ -46,7 +46,8 @@ import mage.constants.Outcome;
|
||||||
import mage.constants.SubLayer;
|
import mage.constants.SubLayer;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.StaticFilters;
|
import mage.filter.common.FilterLandPermanent;
|
||||||
|
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
|
@ -106,7 +107,9 @@ class SkyshroudWarBeastEffect extends ContinuousEffectImpl {
|
||||||
MageObject target = game.getObject(source.getSourceId());
|
MageObject target = game.getObject(source.getSourceId());
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
UUID playerId = (UUID) game.getState().getValue(source.getSourceId().toString() + ChooseOpponentEffect.VALUE_KEY);
|
UUID playerId = (UUID) game.getState().getValue(source.getSourceId().toString() + ChooseOpponentEffect.VALUE_KEY);
|
||||||
int number = new PermanentsOnBattlefieldCount(StaticFilters.FILTER_LANDS_NONBASIC).calculate(game, source, this);
|
FilterLandPermanent filter = FilterLandPermanent.nonbasicLand();
|
||||||
|
filter.add(new ControllerIdPredicate(playerId));
|
||||||
|
int number = new PermanentsOnBattlefieldCount(filter).calculate(game, source, this);
|
||||||
target.getPower().setValue(number);
|
target.getPower().setValue(number);
|
||||||
target.getToughness().setValue(number);
|
target.getToughness().setValue(number);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue