mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
- small fix Blood Tithe.
This commit is contained in:
parent
9aa699ac4e
commit
bab673adf7
1 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ public final class BloodTithe extends CardImpl {
|
||||||
class BloodTitheEffect extends OneShotEffect {
|
class BloodTitheEffect extends OneShotEffect {
|
||||||
|
|
||||||
public BloodTitheEffect() {
|
public BloodTitheEffect() {
|
||||||
super(Outcome.Damage);
|
super(Outcome.GainLife);
|
||||||
staticText = "Each opponent loses 3 life. You gain life equal to the life lost this way";
|
staticText = "Each opponent loses 3 life. You gain life equal to the life lost this way";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -47,11 +47,11 @@ class BloodTitheEffect extends OneShotEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
int damage = 0;
|
int lifeLost = 0;
|
||||||
for (UUID opponentId: game.getOpponents(source.getControllerId())) {
|
for (UUID opponentId: game.getOpponents(source.getControllerId())) {
|
||||||
damage += game.getPlayer(opponentId).damage(3, source.getSourceId(), game, false, true);
|
lifeLost += game.getPlayer(opponentId).loseLife(3, game, false);
|
||||||
}
|
}
|
||||||
game.getPlayer(source.getControllerId()).gainLife(damage, game, source);
|
game.getPlayer(source.getControllerId()).gainLife(lifeLost, game, source);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue