mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
take Morph into account in the stack description of AF_GainControl
This commit is contained in:
@@ -63,9 +63,12 @@ public class AbilityFactory_GainControl {
|
|||||||
public String getStackDescription(){
|
public String getStackDescription(){
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
String name = AF.getHostCard().getName();
|
String name = AF.getHostCard().getName();
|
||||||
sb.append(name).append(" - targeting ");
|
sb.append(name).append(" - gain control of ");
|
||||||
Card tgt = getTargetCard();
|
Card tgt = getTargetCard();
|
||||||
if (tgt != null) sb.append(tgt.getName());
|
if (tgt != null) {
|
||||||
|
if(tgt.isFaceDown()) sb.append("Morph");
|
||||||
|
else sb.append(tgt.getName());
|
||||||
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
};//SpellAbility
|
};//SpellAbility
|
||||||
@@ -98,9 +101,12 @@ public class AbilityFactory_GainControl {
|
|||||||
public String getStackDescription(){
|
public String getStackDescription(){
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
String name = AF.getHostCard().getName();
|
String name = AF.getHostCard().getName();
|
||||||
sb.append(name).append(" - targeting ");
|
sb.append(name).append(" - gain control of ");
|
||||||
Card tgt = getTargetCard();
|
Card tgt = getTargetCard();
|
||||||
if (tgt != null) sb.append(tgt.getName());
|
if (tgt != null) {
|
||||||
|
if(tgt.isFaceDown()) sb.append("Morph");
|
||||||
|
else sb.append(tgt.getName());
|
||||||
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
};//Ability_Activated
|
};//Ability_Activated
|
||||||
|
|||||||
Reference in New Issue
Block a user