forked from External/mage
Fixes #512
This commit is contained in:
parent
7ddd36af0f
commit
5ede7221c8
199 changed files with 637 additions and 557 deletions
|
|
@ -64,7 +64,7 @@ public class DamageControllerEffect extends OneShotEffect {
|
|||
|
||||
public int getAmount() {
|
||||
if (amount instanceof StaticValue) {
|
||||
return amount.calculate(null, null);
|
||||
return amount.calculate(null, null, this);
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -85,7 +85,7 @@ public class DamageControllerEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
player.damage(amount.calculate(game, source), source.getSourceId(), game, false, preventable);
|
||||
player.damage(amount.calculate(game, source, this), source.getSourceId(), game, false, preventable);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue