forked from External/mage
Use generics to ensure the correct class types stored inside the costs tags.
This commit is contained in:
parent
193a19104c
commit
660288dfd7
12 changed files with 26 additions and 29 deletions
|
|
@ -57,7 +57,7 @@ public class EntersBattlefieldWithXCountersEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
if (permanent != null) {
|
||||
int amount = ((int) CardUtil.getSourceCostsTag(game, source, "X", 0)) * multiplier;
|
||||
int amount = CardUtil.getSourceCostsTag(game, source, "X", 0) * multiplier;
|
||||
if (amount > 0) {
|
||||
Counter counterToAdd = counter.copy();
|
||||
counterToAdd.add(amount - counter.getCount());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue