Further work on the script interface rework
This commit is contained in:
@@ -7,10 +7,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Emergency_Exit_(Ability)">Bulbapedia - Emergency Exit</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "emergency_exit")]
|
||||
public class EmergencyExit : Script
|
||||
public class EmergencyExit : Script, IScriptOnDamage
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnDamage(IPokemon pokemon, DamageSource source, uint oldHealth, uint newHealth)
|
||||
public void OnDamage(IPokemon pokemon, DamageSource source, uint oldHealth, uint newHealth)
|
||||
{
|
||||
if (pokemon.BattleData is null)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user