Adds more move scripts

This commit is contained in:
Deukhoofd committed 2025-03-07 12:19:37 +01:00
1 parent a3a9f1800a
commit 3571b2130e
16 files changed
+193 -21

No files matched your search

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