mirror of
https://github.com/correl/mage.git
synced 2024-12-28 11:14:13 +00:00
Merge pull request #868 from FenrisulfrX/fixgleam
* Fix Gleam of Authority
This commit is contained in:
commit
1efa7b0259
1 changed files with 2 additions and 1 deletions
|
@ -108,8 +108,9 @@ class CountersOnControlledCount implements DynamicValue {
|
||||||
@Override
|
@Override
|
||||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
Permanent enchantment = game.getPermanent(sourceAbility.getSourceId());
|
||||||
for (Permanent permanent : game.getState().getBattlefield().getAllActivePermanents(filter, sourceAbility.getControllerId(), game)) {
|
for (Permanent permanent : game.getState().getBattlefield().getAllActivePermanents(filter, sourceAbility.getControllerId(), game)) {
|
||||||
if (!permanent.getId().equals(sourceAbility.getSourceId())) {
|
if (!permanent.getId().equals(enchantment.getAttachedTo())) {
|
||||||
count += permanent.getCounters().getCount(CounterType.P1P1);
|
count += permanent.getCounters().getCount(CounterType.P1P1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue