mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-30 22:07:24 -05:00
Ignored species shiny/form bits in ScrCmd_bufferspeciesname.
This commit is contained in:
@@ -1589,7 +1589,7 @@ bool8 ScrCmd_vmessage(struct ScriptContext *ctx)
|
||||
bool8 ScrCmd_bufferspeciesname(struct ScriptContext *ctx)
|
||||
{
|
||||
u8 stringVarIndex = ScriptReadByte(ctx);
|
||||
u16 species = VarGet(ScriptReadHalfword(ctx));
|
||||
u16 species = VarGet(ScriptReadHalfword(ctx)) & ((1 << 10) - 1); // ignore possible shiny / form bits
|
||||
|
||||
StringCopy(sScriptStringVars[stringVarIndex], gSpeciesNames[species]);
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user