mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
* Chandra's Triumph - fixed that it always deals 5 damage;
This commit is contained in:
parent
b9be369bd3
commit
5c33dc185b
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,8 @@ public final class ChandrasTriumph extends CardImpl {
|
|||
public ChandrasTriumph(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Chandra's Triumph deals 3 damage to target creature or planeswalker an opponent controls. Chandra's Triumph deals 5 damage to that permanent instead if you control a Chandra planeswalker.
|
||||
// Chandra's Triumph deals 3 damage to target creature or planeswalker an opponent controls. Chandra's Triumph deals 5 damage to that permanent instead
|
||||
// if you control a Chandra planeswalker.
|
||||
this.getSpellAbility().addEffect(new ChandrasTriumphEffect());
|
||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
}
|
||||
|
@ -75,7 +76,7 @@ class ChandrasTriumphEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
int damage = 3;
|
||||
if (!game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game).isEmpty()) {
|
||||
if (!game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game).isEmpty()) {
|
||||
damage = 5;
|
||||
}
|
||||
return permanent.damage(damage, source.getSourceId(), game) > 0;
|
||||
|
|
Loading…
Reference in a new issue