mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
fix supertype on the client
This commit is contained in:
parent
0879298e92
commit
5cd1b5880f
9 changed files with 64 additions and 117 deletions
|
|
@ -31,11 +31,7 @@ import mage.MageObjectReference;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Layer;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubLayer;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.Token;
|
||||
|
|
@ -101,10 +97,9 @@ public class BecomesCreatureAttachedWithActivatedAbilityOrSpellEffect extends Co
|
|||
switch (layer) {
|
||||
case TypeChangingEffects_4:
|
||||
if (sublayer == SubLayer.NA) {
|
||||
for (String superType : token.getSupertype()) {
|
||||
if (!permanentAttachedTo.getSupertype().contains(superType)) {
|
||||
permanentAttachedTo.getSupertype().add(superType);
|
||||
}
|
||||
for (SuperType superType : token.getSuperType()) {
|
||||
permanentAttachedTo.addSuperType(superType);
|
||||
|
||||
}
|
||||
// card type
|
||||
switch (loseType) {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,21 @@ package mage.constants;
|
|||
*/
|
||||
public enum SuperType {
|
||||
|
||||
BASIC,
|
||||
ELITE,
|
||||
LEGENDARY,
|
||||
ONGOING,
|
||||
SNOW,
|
||||
WORLD
|
||||
BASIC("Basic"),
|
||||
ELITE("Elite"),
|
||||
LEGENDARY("Legendary"),
|
||||
ONGOING("Ongoing"),
|
||||
SNOW("Snow"),
|
||||
WORLD("World");
|
||||
|
||||
String text;
|
||||
|
||||
SuperType(String text){
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return text;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue