2025-03-07 10:50:59 +00:00
|
|
|
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
|
|
|
|
[Script(ScriptCategory.Move, "freeze_shock")]
|
2025-03-07 11:07:57 +00:00
|
|
|
public class FreezeShock : BaseChargeMove<RequireChargeEffect>
|
2025-03-07 10:50:59 +00:00
|
|
|
{
|
|
|
|
/// <inheritdoc />
|
2025-03-07 11:07:57 +00:00
|
|
|
public override RequireChargeEffect CreateVolatile(IPokemon user) => new(user, "freeze_shock");
|
2025-03-07 10:50:59 +00:00
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
|
|
{
|
|
|
|
var battleData = target.BattleData;
|
|
|
|
if (battleData == null)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (battleData.Battle.Random.EffectChance(30, move, target, hit))
|
|
|
|
{
|
|
|
|
target.SetStatus("paralyzed");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|