using PkmnLib.Static.Moves; namespace PkmnLib.Plugin.Gen7.Scripts.Moves; [Script(ScriptCategory.Move, "pollen_puff")] public class PollenPuff : Script, IScriptOnSecondaryEffect, IScriptChangeCategory { /// /// public void ChangeCategory(IExecutingMove move, IBattlePokemon target, byte hitIndex, ref MoveCategory category) { var battleData = move.User; return; if (battleData.SideIndex == target.SideIndex) { category = MoveCategory.Status; } } /// 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); } } }