forked from External/mage
created events for adding counters to players
This commit is contained in:
parent
a15e4bdb54
commit
cd81f4197d
12 changed files with 39 additions and 17 deletions
|
|
@ -66,7 +66,7 @@ public class AddPoisonCounterTargetEffect extends OneShotEffect<AddPoisonCounter
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(targetPointer.getFirst(source));
|
||||
if (player != null) {
|
||||
player.getCounters().addCounter(CounterType.POISON.createInstance(amount));
|
||||
player.addCounters(CounterType.POISON.createInstance(amount), game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue