Skip to content

Commit

Permalink
Details: Show pre-evolutions (smogon#9846)
Browse files Browse the repository at this point in the history
* Details: Show previous evolution

* fix

* Remove : Does Not Pre-evolve

* pokemon.prevo

* Update server/chat-commands/info.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Update server/chat-commands/info.ts

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>

* Modlog

* fail

---------

Co-authored-by: Karthik <32044378+Karthik99999@users.noreply.github.com>
  • Loading branch information
2 people authored and underscoreevelyn committed Dec 2, 2023
1 parent 191bad1 commit a541006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/chat-commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,9 @@ export const commands: Chat.ChatCommands = {
}
}
}
if (pokemon.prevo) {
details["Pre-Evolution"] = pokemon.prevo;
}
if (!evos.length) {
details[`<font color="#686868">Does Not Evolve</font>`] = "";
} else {
Expand Down

0 comments on commit a541006

Please sign in to comment.