mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +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.SubType;
|
||||
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.players.Player;
|
||||
|
||||
|
@ -106,7 +107,9 @@ class SkyshroudWarBeastEffect extends ContinuousEffectImpl {
|
|||
MageObject target = game.getObject(source.getSourceId());
|
||||
if (target != null) {
|
||||
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.getToughness().setValue(number);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue