Even more moves

This commit is contained in:
Deukhoofd committed 2025-04-19 13:04:10 +02:00
1 parent c22ad1a793
commit 807acf1947
19 files changed
+505 -19

No files matched your search

@@ -0,0 +1,16 @@
using PkmnLib.Plugin.Gen7.Scripts.Weather;
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
[Script(ScriptCategory.Move, "rain_dance")]
public class RainDance : Script
{
/// <inheritdoc />
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
{
var battleData = move.User.BattleData;
if (battleData == null)
return;
battleData.Battle.SetWeather(ScriptUtils.ResolveName<Rain>(), 5);
}
}