mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
Fixed Bug #3225
This commit is contained in:
parent
2b98d51596
commit
9be76c59cc
1 changed files with 5 additions and 4 deletions
|
|
@ -48,8 +48,8 @@ import mage.target.common.TargetControlledPermanent;
|
|||
*/
|
||||
public class DevourFlesh extends CardImpl {
|
||||
|
||||
public DevourFlesh (UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{1}{B}");
|
||||
public DevourFlesh(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{B}");
|
||||
|
||||
// Target player sacrifices a creature, then gains life equal to that creature's toughness.
|
||||
this.getSpellAbility().addEffect(new DevourFleshSacrificeEffect());
|
||||
|
|
@ -61,7 +61,7 @@ public class DevourFlesh extends CardImpl {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DevourFlesh copy() {
|
||||
public DevourFlesh copy() {
|
||||
return new DevourFlesh(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -99,8 +99,9 @@ class DevourFleshSacrificeEffect extends OneShotEffect {
|
|||
if (permanent != null) {
|
||||
int gainLife = permanent.getToughness().getValue();
|
||||
permanent.sacrifice(source.getSourceId(), game);
|
||||
game.applyEffects();
|
||||
player.gainLife(gainLife, game);
|
||||
} else{
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue