mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fixed a possible NPE caused by Scars of the Veteran.
This commit is contained in:
@@ -913,8 +913,10 @@ public class Player extends GameEntity implements Comparable<Player> {
|
|||||||
if (apiIsEffect) {
|
if (apiIsEffect) {
|
||||||
List<Card> newCardsInCommand = this.getGame().getCardsIn(ZoneType.Command);
|
List<Card> newCardsInCommand = this.getGame().getCardsIn(ZoneType.Command);
|
||||||
newCardsInCommand.removeAll(cardsInCommand);
|
newCardsInCommand.removeAll(cardsInCommand);
|
||||||
|
if (!newCardsInCommand.isEmpty()) {
|
||||||
newCardsInCommand.get(0).setSVar("PreventedDamage", "Number$" + Integer.toString(dmgToBePrevented));
|
newCardsInCommand.get(0).setSVar("PreventedDamage", "Number$" + Integer.toString(dmgToBePrevented));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.subtractPreventNextDamageWithEffect(shieldSource, restDamage);
|
this.subtractPreventNextDamageWithEffect(shieldSource, restDamage);
|
||||||
restDamage = restDamage - dmgToBePrevented;
|
restDamage = restDamage - dmgToBePrevented;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user