mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
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:
parent
9e5ffde0da
commit
ebd6e47848
1 changed files with 5 additions and 16 deletions
|
@ -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;
|
||||
|
@ -16,33 +15,23 @@ import mage.constants.Zone;
|
|||
* @author LevelX2
|
||||
*/
|
||||
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
|
||||
public String getRule() {
|
||||
return "Menace <i>(This creature can't be blocked except by two or more creatures.)</i>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue