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/Soul-Heart_(Ability)">Bulbapedia - Soul-Heart</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "soul_heart")]
|
||||
public class SoulHeart : Script, IScriptOnOpponentFaints
|
||||
public class SoulHeart : Script, IScriptOnOpponentFaints, IScriptOnAllyFaint
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
|
||||
public void OnAllyFaint(IPokemon ally, IPokemon faintedPokemon)
|
||||
{
|
||||
ally.ChangeStatBoost(Statistic.SpecialAttack, 1, true, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user