Add greninja form handling

#666
This commit is contained in:
Kurt
2016-12-24 15:50:26 -08:00
parent 67838e4643
commit a7a97fe084

View File

@@ -141,6 +141,9 @@ public ShowdownSet(string input = null)
// Showdown Quirks
switch (Species)
{
case 658: // Greninja
if (Ability == 210) Form += "-Ash"; // Battle Bond
break;
case 718: // Zygarde
if (string.IsNullOrEmpty(Form)) Form = "50%";
else if (Form == "Complete") Form = "100%";
@@ -161,6 +164,10 @@ public string getText()
string form = Form;
switch (Species)
{
case 658: // Greninja
form = form.Replace("Ash", "");
form = form.Replace("Active", "");
break;
case 718: // Zygarde
form = form.Replace("-C", "");
form = form.Replace("50%", "");