forked from External/mage
- Fixed #6056. Please test when you can. Now you will see other abilities/spellAbilities from cards presented during the cast from exile. Overload, Emerge, Surge, etc.
This commit is contained in:
parent
76da8dd539
commit
2de7c136ea
11 changed files with 135 additions and 66 deletions
|
|
@ -51,8 +51,9 @@ public class SurgeAbility extends SpellAbility {
|
|||
if (player != null) {
|
||||
for (UUID playerToCheckId : game.getState().getPlayersInRange(playerId, game)) {
|
||||
if (!player.hasOpponent(playerToCheckId, game)) {
|
||||
if (watcher.getAmountOfSpellsPlayerCastOnCurrentTurn(playerToCheckId) > 0) {
|
||||
return super.canActivate(playerId, game);
|
||||
if (watcher.getAmountOfSpellsPlayerCastOnCurrentTurn(playerToCheckId) > 0
|
||||
&& super.canActivate(playerId, game).canActivate()) {
|
||||
return ActivationStatus.getTrue();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue