mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed a possible IndexOutOfBoundsException in dealDamageResolve.
This commit is contained in:
@@ -824,6 +824,9 @@ public class AbilityFactoryDealDamage {
|
||||
|
||||
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(saMe.getSourceCard(),
|
||||
params.get("DamageSource"), saMe);
|
||||
if (definedSources == null) {
|
||||
return;
|
||||
}
|
||||
final Card source = definedSources.get(0);
|
||||
|
||||
for (final Object o : tgts) {
|
||||
|
||||
Reference in New Issue
Block a user