Inner Struggle fixes so creature is source of damage done to itself

This commit is contained in:
drmDev 2016-07-17 12:37:31 -04:00
parent f807fed12c
commit 4a162dd609
2 changed files with 3 additions and 3 deletions

View file

@ -64,9 +64,9 @@ public class LovisaColdeyes extends CardImpl {
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Each creature you control that's a Barbarian, a Warrior, or a Berserker gets +2/+2 and has haste.
// Each creature that's a Barbarian, a Warrior, or a Berserker gets +2/+2 and has haste.
Effect effect = new BoostAllEffect(2, 2, Duration.WhileOnBattlefield, filter, false);
effect.setText("Each creature you control that's a Barbarian, a Warrior, or a Berserker gets +2/+2");
effect.setText("Each creature that's a Barbarian, a Warrior, or a Berserker gets +2/+2");
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
effect = new GainAbilityAllEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield, filter, false);
effect.setText("and has haste");

View file

@ -87,7 +87,7 @@ class InnerStruggleEffect extends OneShotEffect {
if (controller != null) {
Permanent targetCreature = game.getPermanent(getTargetPointer().getFirst(game, source));
if (targetCreature != null) {
targetCreature.damage(targetCreature.getPower().getValue(), source.getSourceId(), game, false, true);
targetCreature.damage(targetCreature.getPower().getValue(), targetCreature.getId(), game, false, true);
}
return true;
}