used targetPointer instead source target, minor rule text change

This commit is contained in:
LevelX2 2012-10-29 08:27:05 +01:00
parent b9d98eb564
commit cf3764e52a
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ public class PreventDamageTargetEffect extends PreventionEffectImpl<PreventDamag
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (!this.used && super.applies(event, source, game) && event.getTargetId().equals(source.getFirstTarget())) {
if (!this.used && super.applies(event, source, game) && event.getTargetId().equals(targetPointer.getFirst(game, source))) {
return true;
}
return false;

View file

@ -41,8 +41,8 @@ import mage.game.permanent.Permanent;
*/
public class TransformAbility extends SimpleStaticAbility {
public static final String NO_SPELLS_TRANSFORM_RULE = "At the beginning of each upkeep, if no spells were cast last turn, transform {this}";
public static final String TWO_OR_MORE_SPELLS_TRANSFORM_RULE = "At the beginning of each upkeep, if a player cast two or more spells last turn, transform {this}";
public static final String NO_SPELLS_TRANSFORM_RULE = "At the beginning of each upkeep, if no spells were cast last turn, transform {this}.";
public static final String TWO_OR_MORE_SPELLS_TRANSFORM_RULE = "At the beginning of each upkeep, if a player cast two or more spells last turn, transform {this}.";
public TransformAbility() {
super(Constants.Zone.BATTLEFIELD, new TransformEffect());