- Fixed a possible NPE if the activator for a cost is not set.

This commit is contained in:
Sloth
2011-10-25 05:28:31 +00:00
parent a65508754d
commit a3bc6f009a

View File

@@ -113,6 +113,11 @@ public class Cost_Payment {
Player activator = ability.getActivatingPlayer();
final Card card = ability.getSourceCard();
if(activator == null) {
activator = card.getController();
}
for(CostPart part : cost.getCostParts()){
if (!part.canPay(ability, card, activator, cost))
return false;