mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
CardFactory: fixed etbCounter init twice for Planeswalker
This commit is contained in:
@@ -349,12 +349,15 @@ public class CardFactory {
|
||||
}
|
||||
|
||||
private static void buildPlaneswalkerAbilities(Card card) {
|
||||
CardState state = card.getCurrentState();
|
||||
// etbCounter only for Original Card
|
||||
if (card.getBaseLoyalty() > 0 && card.getCurrentStateName() == CardStateName.Original) {
|
||||
final String loyalty = Integer.toString(card.getBaseLoyalty());
|
||||
card.addIntrinsicKeyword("etbCounter:LOYALTY:" + loyalty + ":no Condition:no desc");
|
||||
// keyword need to be added to state directly, so init can be disabled
|
||||
if (state.addIntrinsicKeyword("etbCounter:LOYALTY:" + loyalty + ":no Condition:no desc", false) != null) {
|
||||
card.updateKeywords();
|
||||
}
|
||||
}
|
||||
CardState state = card.getCurrentState();
|
||||
|
||||
//Planeswalker damage redirection
|
||||
String replacement = "Event$ DamageDone | ActiveZones$ Battlefield | IsCombat$ False | ValidSource$ Card.OppCtrl,Emblem.OppCtrl"
|
||||
|
||||
Reference in New Issue
Block a user