forked from External/mage
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -86,7 +86,7 @@ public class CopyEffect extends ContinuousEffectImpl {
|
|||
Permanent permanent = game.getPermanent(copyToObjectId);
|
||||
if (permanent != null) {
|
||||
affectedObjectList.add(new MageObjectReference(permanent, game));
|
||||
} else if (source.getAbilityType().equals(AbilityType.STATIC)) {
|
||||
} else if (source.getAbilityType() == AbilityType.STATIC) {
|
||||
// for replacement effects that let a permanent enter the battlefield as a copy of another permanent we need to apply that copy
|
||||
// before the permanent is added to the battlefield
|
||||
permanent = game.getPermanentEntering(copyToObjectId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue