Bunch more moves, changes in how additional information for items works.
This commit is contained in:
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/MudSport.cs
Normal file
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/MudSport.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Battle;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "mud_sport")]
|
||||
public class MudSport : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var battle = move.User.BattleData?.Battle;
|
||||
if (battle == null)
|
||||
return;
|
||||
|
||||
battle.Volatile.Add(new MudSportEffect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user