17 lines
460 B
C#
17 lines
460 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Battle;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
[Script(ScriptCategory.Move, "mud_sport")]
|
|
public class MudSport : Script, IScriptOnSecondaryEffect
|
|
{
|
|
/// <inheritdoc />
|
|
public void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
var battle = move.User.BattleData?.Battle;
|
|
if (battle == null)
|
|
return;
|
|
|
|
battle.Volatile.Add(new MudSportEffect());
|
|
}
|
|
} |