Fixed battle rule "forceCatchIntoParty" being circumventable, fixed wrong message when sending a party Pokémon to storage and replacing it with a caught Pokémon

This commit is contained in:
Maruno17
2022-07-07 20:42:23 +01:00
parent e1dc7c91bc
commit b50ce948f6
2 changed files with 4 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ def pbEventCommentInput(*args)
return nil if list.nil?
return nil unless list.is_a?(Array)
list.each do |item|
next if ![108, 108].include?(item.code)
next if ![108, 408].include?(item.code)
next if item.parameters[0] != trigger
start = list.index(item) + 1
finish = start + elements