mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Fix NPE with Brilliant Ultimatum
This commit is contained in:
@@ -2954,6 +2954,7 @@ public class AbilityUtils {
|
||||
|
||||
for (SpellAbility s : list) {
|
||||
if (s.isLandAbility()) {
|
||||
s.setActivatingPlayer(controller);
|
||||
// CR 305.3
|
||||
if (controller.getGame().getPhaseHandler().isPlayerTurn(controller) && controller.canPlayLand(tgtCard, true, s)) {
|
||||
sas.add(s);
|
||||
|
||||
@@ -35,7 +35,7 @@ public class InternalRadiationEffect extends SpellAbilityEffect {
|
||||
final CardCollectionView milled = game.getAction().mill(new PlayerCollection(p), numRad, ZoneType.Graveyard, sa, moveParams);
|
||||
table.triggerChangesZoneAll(game, sa);
|
||||
int n = CardLists.count(milled, Predicates.not(CardPredicates.Presets.LANDS));
|
||||
|
||||
|
||||
if (StaticAbilityGainLifeRadiation.gainLifeRadiation(p)) {
|
||||
p.gainLife(n, sa.getHostCard(), sa);
|
||||
} else {
|
||||
@@ -49,7 +49,7 @@ public class InternalRadiationEffect extends SpellAbilityEffect {
|
||||
game.getTriggerHandler().runTrigger(TriggerType.LifeLostAll, runParams, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// and remove n rad counter
|
||||
p.removeRadCounters(n);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user