mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Merge pull request #5248 from tamaroth/bug-forge-of-hearos-not-activating
Forge of Heroes ability not working.
This commit is contained in:
commit
9003ebb883
2 changed files with 5 additions and 5 deletions
|
@ -86,11 +86,12 @@ class ForgeOfHeroesEffect extends OneShotEffect {
|
|||
new AddCountersTargetEffect(
|
||||
CounterType.P1P1.createInstance()
|
||||
).apply(game, source);
|
||||
}
|
||||
if (permanent.isPlaneswalker()) {
|
||||
} else if (permanent.isPlaneswalker()) {
|
||||
new AddCountersTargetEffect(
|
||||
CounterType.LOYALTY.createInstance()
|
||||
).apply(game, source);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -19,13 +19,12 @@ public class CommanderPredicate implements Predicate<Permanent> {
|
|||
@Override
|
||||
public boolean apply(Permanent input, Game game) {
|
||||
Player owner = game.getPlayer(input.getOwnerId());
|
||||
return input.isCreature()
|
||||
&& owner != null
|
||||
return owner != null
|
||||
&& owner.getCommandersIds().contains(input.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Commander creature";
|
||||
return "Commander";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue