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/Berserk_(Ability)">Bulbapedia - Berserk</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "berserk")]
|
||||
public class Berserk : Script
|
||||
public class Berserk : 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 (source is not DamageSource.MoveDamage)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user