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