mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Add some NPE checks in Combat View
This commit is contained in:
@@ -140,7 +140,7 @@ public class CombatView extends TrackableObject {
|
||||
}
|
||||
final FCollection<CardView> views = new FCollection<CardView>();
|
||||
for (final Entry<CardView, GameEntityView> entry : attackersWithDefenders) {
|
||||
if (entry.getValue().equals(defender)) {
|
||||
if (defender != null && defender.equals(entry.getValue())) {
|
||||
views.add(entry.getKey());
|
||||
}
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public class CombatView extends TrackableObject {
|
||||
}
|
||||
final List<FCollection<CardView>> views = new ArrayList<FCollection<CardView>>();
|
||||
for (final Entry<FCollection<CardView>, GameEntityView> entry : bandsWithDefenders) {
|
||||
if (entry.getValue().equals(defender)) {
|
||||
if (defender != null && defender.equals(entry.getValue())) {
|
||||
views.add(entry.getKey());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,4 +8,4 @@ T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.S
|
||||
SVar:TrigPumpAll:AB$ PumpAll | Cost$ 0 | ValidCards$ Creature.YouCtrl+Other | NumAtt$ 1 | KW$ Haste
|
||||
SVar:PlayMain1:TRUE
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/reckless_bushwhacker.jpg
|
||||
Oracle:Surge 1R (You may cast this spell for its surge cost if you or a teammate has cast another spell this turn.)\nHaste\nWhen Reckless Bushwhacker enters the battlefield, if its surge cost was paid, other creatures you control get +1/+0 and gain haste until end of turn.
|
||||
Oracle:Surge {1}{R} (You may cast this spell for its surge cost if you or a teammate has cast another spell this turn.)\nHaste\nWhen Reckless Bushwhacker enters the battlefield, if its surge cost was paid, other creatures you control get +1/+0 and gain haste until end of turn.
|
||||
|
||||
Reference in New Issue
Block a user