add targets pointer

This commit is contained in:
Loki 2011-06-07 22:13:42 +03:00
parent 52b4858f99
commit 0b10a3a121
4 changed files with 53 additions and 1 deletions

View file

@ -63,7 +63,7 @@ public class AddPoisonCounterTargetEffect extends OneShotEffect<AddPoisonCounter
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getFirstTarget());
Player player = game.getPlayer(targetPointer.getFirst(source));
if (player != null) {
player.getCounters().addCounter(CounterType.POISON.createInstance(amount));
return true;