- Fixed a possible IndexOutOfBoundsException in dealDamageResolve.

This commit is contained in:
Sloth
2012-05-07 10:05:19 +00:00
parent 29440c50a3
commit fa996e564f

View File

@@ -824,6 +824,9 @@ public class AbilityFactoryDealDamage {
final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(saMe.getSourceCard(), final ArrayList<Card> definedSources = AbilityFactory.getDefinedCards(saMe.getSourceCard(),
params.get("DamageSource"), saMe); params.get("DamageSource"), saMe);
if (definedSources == null) {
return;
}
final Card source = definedSources.get(0); final Card source = definedSources.get(0);
for (final Object o : tgts) { for (final Object o : tgts) {