Fixed that Menace was a singleton class, what causes a lot of bugs on the public server and it shouldn't be a singleton anyway.

This commit is contained in:
LevelX2 2015-07-05 02:03:59 +02:00
parent 9e5ffde0da
commit ebd6e47848

View file

@ -5,7 +5,6 @@
*/
package mage.abilities.keyword;
import java.io.ObjectStreamException;
import mage.abilities.Ability;
import mage.abilities.StaticAbility;
import mage.abilities.effects.common.combat.CantBeBlockedByOneEffect;
@ -17,27 +16,17 @@ import mage.constants.Zone;
*/
public class MenaceAbility extends StaticAbility {
private static final MenaceAbility fINSTANCE = new MenaceAbility();
public MenaceAbility() {
super(Zone.BATTLEFIELD, new CantBeBlockedByOneEffect(2));
}
public MenaceAbility(MenaceAbility ability) {
public MenaceAbility(final MenaceAbility ability) {
super(ability);
}
private Object readResolve() throws ObjectStreamException {
return fINSTANCE;
}
public static MenaceAbility getInstance() {
return fINSTANCE;
}
@Override
public Ability copy() {
return fINSTANCE;
return new MenaceAbility(this);
}
@Override