12 lines
393 B
C#
12 lines
393 B
C#
|
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;
|
||
|
battleData?.Battle.SetTerrain(ScriptUtils.ResolveName<ElectricTerrain>());
|
||
|
}
|
||
|
}
|