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