mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Scholar of Athreos - Fixed that damage was dealt instead of life loss.
This commit is contained in:
parent
14ac6609db
commit
90418ddafd
1 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.s;
|
package mage.cards.s;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -10,8 +9,8 @@ import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
|
||||||
import mage.constants.Outcome;
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.SubType;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
|
||||||
|
@ -22,7 +21,7 @@ import mage.game.Game;
|
||||||
public final class ScholarOfAthreos extends CardImpl {
|
public final class ScholarOfAthreos extends CardImpl {
|
||||||
|
|
||||||
public ScholarOfAthreos(UUID ownerId, CardSetInfo setInfo) {
|
public ScholarOfAthreos(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||||
this.subtype.add(SubType.HUMAN);
|
this.subtype.add(SubType.HUMAN);
|
||||||
this.subtype.add(SubType.CLERIC);
|
this.subtype.add(SubType.CLERIC);
|
||||||
|
|
||||||
|
@ -56,11 +55,11 @@ class ScholarOfAthreosEffect 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(1, source.getSourceId(), game, false, true);
|
lifeLost += game.getPlayer(opponentId).loseLife(1, game, false);
|
||||||
}
|
}
|
||||||
game.getPlayer(source.getControllerId()).gainLife(damage, game, source);
|
game.getPlayer(source.getControllerId()).gainLife(lifeLost, game, source);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue