From 5a1c4980cbe3c56ecb37f63cd0751e798806b56a Mon Sep 17 00:00:00 2001 From: Maxmtg Date: Tue, 21 May 2013 16:40:44 +0000 Subject: [PATCH] cast was unneed --- src/main/java/forge/game/ai/ComputerUtilMana.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/forge/game/ai/ComputerUtilMana.java b/src/main/java/forge/game/ai/ComputerUtilMana.java index 7ebe6b247b7..0db9b8c64cb 100644 --- a/src/main/java/forge/game/ai/ComputerUtilMana.java +++ b/src/main/java/forge/game/ai/ComputerUtilMana.java @@ -114,7 +114,7 @@ public class ComputerUtilMana { while (!cost.isPaid()) { toPay = getNextShardToPay(cost, sourcesForShards); - List saList = (List) sourcesForShards.get(toPay); + Collection saList = sourcesForShards.get(toPay); SpellAbility saPayment = null; if( saList != null ) { for (final SpellAbility ma : saList) { @@ -165,7 +165,8 @@ public class ComputerUtilMana { // subtract mana from mana pool manapool.payManaFromAbility(sa, cost, saPayment); - // no need remove abilities from resource map, once their costs are paid and consume resources, they can not be used again + // no need to remove abilities from resource map, + // once their costs are paid and consume resources, they can not be used again } }