Further work on the script interface rework
This commit is contained in:
@@ -6,10 +6,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Power_of_Alchemy_(Ability)">Bulbapedia - Power of Alchemy</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "power_of_alchemy")]
|
||||
public class PowerOfAlchemy : Script
|
||||
public class PowerOfAlchemy : Script, IScriptOnAllyFaint
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
|
||||
public void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
|
||||
{
|
||||
if (faintedPokemon.ActiveAbility?.HasFlag("cant_be_copied") != true)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user