mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Merge branch 'NPEfix' into 'master'
Fix NPE with Realmwalker See merge request core-developers/forge!6228
This commit is contained in:
@@ -1853,7 +1853,7 @@ public class AbilityUtils {
|
|||||||
// Count$TriggeredManaSpent
|
// Count$TriggeredManaSpent
|
||||||
if (sq[0].equals("TriggeredManaSpent")) {
|
if (sq[0].equals("TriggeredManaSpent")) {
|
||||||
final SpellAbility root = (SpellAbility) sa.getRootAbility().getTriggeringObject(AbilityKey.SpellAbility);
|
final SpellAbility root = (SpellAbility) sa.getRootAbility().getTriggeringObject(AbilityKey.SpellAbility);
|
||||||
return root.getTotalManaSpent();
|
return root == null ? 0 : root.getTotalManaSpent();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Count$Adamant.<Color>.<True>.<False>
|
// Count$Adamant.<Color>.<True>.<False>
|
||||||
|
|||||||
@@ -1278,7 +1278,6 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
|
|
||||||
// TODO JAVA 8 use getOrDefault
|
// TODO JAVA 8 use getOrDefault
|
||||||
for (Card c : player.getAllCards()) {
|
for (Card c : player.getAllCards()) {
|
||||||
|
|
||||||
// Changeling are all creature types, they are not interesting for
|
// Changeling are all creature types, they are not interesting for
|
||||||
// counting creature types
|
// counting creature types
|
||||||
if (c.hasStartOfKeyword(Keyword.CHANGELING.toString())) {
|
if (c.hasStartOfKeyword(Keyword.CHANGELING.toString())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user