mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Update BlazingSalvo.java
This commit is contained in:
parent
8ed1bff72c
commit
e86f2433a1
1 changed files with 17 additions and 17 deletions
|
@ -52,8 +52,8 @@ public class BlazingSalvo extends CardImpl<BlazingSalvo> {
|
|||
this.color.setRed(true);
|
||||
|
||||
// Blazing Salvo deals 3 damage to target creature unless that creature's controller has Blazing Salvo deal 5 damage to him or her.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
||||
this.getSpellAbility().addEffect(new BlazingSalvoEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(true));
|
||||
this.getSpellAbility().addEffect(new BlazingSalvoEffect());
|
||||
}
|
||||
|
||||
public BlazingSalvo(final BlazingSalvo card) {
|
||||
|
@ -82,23 +82,23 @@ class BlazingSalvoEffect extends OneShotEffect<BlazingSalvoEffect> {
|
|||
return new BlazingSalvoEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
if (player != null) {
|
||||
String message = "Have Blazing Salvo do 5 damage to you?";
|
||||
if (player.chooseUse(Outcome.Damage, message, game)){
|
||||
player.damage(5, source.getSourceId(), game, true, false);
|
||||
} else {
|
||||
permanent.damage(3, source.getSourceId(), game, true, false);
|
||||
}
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
|
||||
if (permanent != null) {
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
if (player != null) {
|
||||
String message = "Have Blazing Salvo do 5 damage to you?";
|
||||
if (player.chooseUse(Outcome.Damage, message, game)){
|
||||
player.damage(5, source.getSourceId(), game, true, false);
|
||||
} else {
|
||||
permanent.damage(3, source.getSourceId(), game, true, false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue