12 lines
373 B
C#
12 lines
373 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
[Script(ScriptCategory.Move, "u_turn")]
|
|
public class UTurn : Script, IScriptOnSecondaryEffect
|
|
{
|
|
/// <inheritdoc />
|
|
public void OnSecondaryEffect(IExecutingMove move, IBattlePokemon target, byte hit)
|
|
{
|
|
var battleData = move.User;
|
|
battleData?.BattleSide.SwapPokemon(battleData.Position, null);
|
|
}
|
|
} |