2025-02-01 14:00:22 +00:00
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
|
|
|
|
[Script(ScriptCategory.Move, "electric_terrain")]
|
|
|
|
public class ElectricTerrain : Script
|
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
|
|
{
|
|
|
|
var battleData = move.User.BattleData;
|
2025-03-07 11:07:57 +00:00
|
|
|
battleData?.Battle.SetTerrain(ScriptUtils.ResolveName<Terrain.ElectricTerrain>());
|
2025-02-01 14:00:22 +00:00
|
|
|
}
|
|
|
|
}
|