mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
* Deathforge Shaman - Fixed bug that rollbacks game if multikicker is used.
This commit is contained in:
parent
a08e86be97
commit
878909809a
1 changed files with 3 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
package mage.sets.worldwake;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
|
@ -42,8 +43,6 @@ import mage.game.Game;
|
|||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
|
@ -61,7 +60,7 @@ public class DeathforgeShaman extends CardImpl {
|
|||
|
||||
// Multikicker {R}
|
||||
this.addAbility(new MultikickerAbility("{R}"));
|
||||
|
||||
|
||||
// When Deathforge Shaman enters the battlefield, it deals damage to target player equal to twice the number of times it was kicked.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DeathforgeShamanEffect());
|
||||
ability.addTarget(new TargetPlayer());
|
||||
|
@ -101,7 +100,7 @@ class DeathforgeShamanEffect extends OneShotEffect {
|
|||
|
||||
Player player = game.getPlayer(source.getFirstTarget());
|
||||
if (player != null) {
|
||||
player.damage(damage, id, game, false, true);
|
||||
player.damage(damage, source.getSourceId(), game, false, true);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue