forked from External/mage
created mana added event
This commit is contained in:
parent
b7d2079ac0
commit
89d1850493
6 changed files with 20 additions and 14 deletions
|
|
@ -4,6 +4,7 @@ import mage.ConditionalMana;
|
|||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
public class BasicManaEffect extends ManaEffect<BasicManaEffect> {
|
||||
protected Mana mana;
|
||||
|
|
@ -32,7 +33,7 @@ public class BasicManaEffect extends ManaEffect<BasicManaEffect> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
game.getPlayer(source.getControllerId()).getManaPool().changeMana(mana);
|
||||
game.getPlayer(source.getControllerId()).getManaPool().changeMana(mana, game, source);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue