Fix the add_egg command
MR Description
- This MR fixes a crash when trying to forward a hash with a db_symbol as the id: parameter to the add_egg command.
Tests to realize
-
Create a add_egg command in an event. The parameter should be a Hash in which the id: parameter is a db_symbol. The method shouldn't crash and give you the right egg. -
Create a add_egg command in an event. The parameter should be a valid ID/a valid db_symbol. The method shouldn't crash and give you the right egg. -
Create a add_egg command in an event. The parameter should be a PFM::Pokemon. The method shouldn't crash and give you the right egg. -
Try an add_egg command with an ID or a db_symbol unknown to PSDK/Studio: the game should raise an error.
Edited by Zøzo