2025-02-01 14:00:22 +00:00
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
|
|
|
|
[Script(ScriptCategory.Pokemon, "ghostcurse")]
|
|
|
|
public class GhostCurseEffect : Script
|
|
|
|
{
|
|
|
|
private IPokemon _pokemon;
|
2025-03-02 16:19:57 +00:00
|
|
|
|
2025-02-01 14:00:22 +00:00
|
|
|
public GhostCurseEffect(IPokemon pokemon)
|
|
|
|
{
|
|
|
|
_pokemon = pokemon;
|
|
|
|
}
|
2025-03-02 16:19:57 +00:00
|
|
|
|
2025-02-01 14:00:22 +00:00
|
|
|
/// <inheritdoc />
|
|
|
|
public override void OnEndTurn(IBattle battle)
|
|
|
|
{
|
|
|
|
_pokemon.Damage(_pokemon.CurrentHealth / 4, DamageSource.Misc);
|
|
|
|
}
|
|
|
|
}
|