mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Mayael's Aria - Fixed that all creatures instead of correctly controlled creatures were taken into account and boosted.
This commit is contained in:
parent
c74510f21f
commit
96108c9a4e
1 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ import mage.constants.Rarity;
|
|||
import mage.constants.TargetController;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
@ -96,8 +96,8 @@ class MayaelsAriaEffect extends OneShotEffect<MayaelsAriaEffect> {
|
|||
if (you == null) {
|
||||
return false;
|
||||
}
|
||||
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
|
||||
for (Permanent creature : game.getBattlefield().getAllActivePermanents(filter, game)) {
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
for (Permanent creature : game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
|
||||
if (creature.getPower().getValue() > 4) {
|
||||
condition1 = true;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ class MayaelsAriaEffect extends OneShotEffect<MayaelsAriaEffect> {
|
|||
}
|
||||
}
|
||||
if (condition1) {
|
||||
for (Permanent creature : game.getBattlefield().getAllActivePermanents(filter, game)) {
|
||||
for (Permanent creature : game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
|
||||
creature.addCounters(CounterType.P1P1.createInstance(), game);
|
||||
}
|
||||
}
|
||||
|
@ -118,4 +118,4 @@ class MayaelsAriaEffect extends OneShotEffect<MayaelsAriaEffect> {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue