mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Card.changeCardState support Specialize
This commit is contained in:
@@ -661,6 +661,19 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
}
|
}
|
||||||
} else if (mode.equals("Meld") && isMeldable()) {
|
} else if (mode.equals("Meld") && isMeldable()) {
|
||||||
return changeToState(CardStateName.Meld);
|
return changeToState(CardStateName.Meld);
|
||||||
|
} else if (mode.equals("Specialize")) {
|
||||||
|
if (customState.equalsIgnoreCase("white")) {
|
||||||
|
return changeToState(CardStateName.SpecializeW);
|
||||||
|
} else if (customState.equalsIgnoreCase("blue")) {
|
||||||
|
return changeToState(CardStateName.SpecializeU);
|
||||||
|
} else if (customState.equalsIgnoreCase("black")) {
|
||||||
|
return changeToState(CardStateName.SpecializeB);
|
||||||
|
} else if (customState.equalsIgnoreCase("red")) {
|
||||||
|
return changeToState(CardStateName.SpecializeR);
|
||||||
|
} else if (customState.equalsIgnoreCase("green")) {
|
||||||
|
return changeToState(CardStateName.SpecializeG);
|
||||||
|
}
|
||||||
|
//do trigger here?
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user