From 41b7e90c3c674b698b4d25886857fb8e540c712f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 28 Aug 2026 15:31:54 +0200 Subject: [PATCH] Fix pollen puff --- .../Scripts/Moves/PollenPuff.cs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/PollenPuff.cs b/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/PollenPuff.cs index 6cca028..3174ced 100644 --- a/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/PollenPuff.cs +++ b/Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/PollenPuff.cs @@ -9,11 +9,7 @@ public class PollenPuff : Script, IScriptOnSecondaryEffect, IScriptChangeCategor /// public void ChangeCategory(IExecutingMove move, IBattlePokemon target, byte hitIndex, ref MoveCategory category) { - var battleData = move.User; - - return; - - if (battleData.SideIndex == target.SideIndex) + if (move.User.SideIndex == target.SideIndex) { category = MoveCategory.Status; } @@ -22,14 +18,9 @@ public class PollenPuff : Script, IScriptOnSecondaryEffect, IScriptChangeCategor /// public void OnSecondaryEffect(IExecutingMove move, IBattlePokemon target, byte hit) { - var battleData = move.User; - - return; - - if (battleData.SideIndex == target.SideIndex) - { - var maxHealth = target.MaxHealth; - target.Heal(maxHealth / 2); - } + if (move.User.SideIndex != target.SideIndex) + return; + var maxHealth = target.MaxHealth; + target.Heal(maxHealth / 2); } } \ No newline at end of file