fix for issue 22 + fix for planeswalker damage redirection

This commit is contained in:
BetaSteward 2010-11-28 04:31:48 +00:00
parent c90193a4eb
commit 9c3ff863e8
49 changed files with 636 additions and 182 deletions

View file

@ -64,8 +64,7 @@ public class GainAbilityTargetEffect extends ContinuousEffectImpl {
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(source.getFirstTarget());
if (permanent != null) {
permanent.addAbility(ability);
//TODO: should copy ability before adding
permanent.addAbility(ability.copy());
return true;
}
return false;