From 3b6d636e725784f50b7aec331b5066e9ef29ca71 Mon Sep 17 00:00:00 2001 From: RonarsCorruption <129662653+RonarsCorruption@users.noreply.github.com> Date: Sun, 2 Apr 2023 07:33:22 -0400 Subject: [PATCH] Correcting Ability Capsules Ability capsules were only updating the ID of the ability the pokemon thought it had, and not actually changing the pokemon's ability. This changes that. --- Data/Scripts/013_Items/002_Item_Effects.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Data/Scripts/013_Items/002_Item_Effects.rb b/Data/Scripts/013_Items/002_Item_Effects.rb index 2aca4ebac..8832c04ec 100644 --- a/Data/Scripts/013_Items/002_Item_Effects.rb +++ b/Data/Scripts/013_Items/002_Item_Effects.rb @@ -1068,7 +1068,8 @@ ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE, proc { |item, pkmn, scene| if scene.pbConfirm(_INTL("Would you like to change {1}'s Ability to {2}?", pkmn.name, newabilname)) pkmn.ability_index = newabil - scene.pbRefresh + pkmn.ability = GameData::Ability.get((newabil == 0) ? abil1 : abil2).id + scene.pbHardRefresh scene.pbDisplay(_INTL("{1}'s Ability changed to {2}!", pkmn.name, newabilname)) next true end