mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Fixed Issue 387.
This commit is contained in:
parent
dc9397bd62
commit
954052b64e
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ public class BoostAllEffect extends ContinuousEffectImpl<BoostAllEffect> {
|
||||||
public void init(Ability source, Game game) {
|
public void init(Ability source, Game game) {
|
||||||
super.init(source, game);
|
super.init(source, game);
|
||||||
if (this.affectedObjectsSet) {
|
if (this.affectedObjectsSet) {
|
||||||
for (Permanent perm: game.getBattlefield().getAllActivePermanents(filter)) {
|
for (Permanent perm: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
|
||||||
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
|
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
|
||||||
objects.add(perm.getId());
|
objects.add(perm.getId());
|
||||||
}
|
}
|
||||||
|
@ -103,7 +103,7 @@ public class BoostAllEffect extends ContinuousEffectImpl<BoostAllEffect> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
for (Permanent perm: game.getBattlefield().getAllActivePermanents(filter)) {
|
for (Permanent perm: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game)) {
|
||||||
if (!this.affectedObjectsSet || objects.contains(perm.getId())) {
|
if (!this.affectedObjectsSet || objects.contains(perm.getId())) {
|
||||||
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
|
if (!(excludeSource && perm.getId().equals(source.getSourceId()))) {
|
||||||
perm.addPower(power.calculate(game, source));
|
perm.addPower(power.calculate(game, source));
|
||||||
|
|
Loading…
Reference in a new issue