mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
used targetPointer instead source target, minor rule text change
This commit is contained in:
parent
b9d98eb564
commit
cf3764e52a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue