More tests, more fixes
All checks were successful
Build / Build (push) Successful in 1m57s

This commit is contained in:
2026-07-05 18:26:55 +02:00
parent 1ab15110f5
commit 6a82c20cf2
20 changed files with 1682 additions and 12 deletions

View File

@@ -296,7 +296,7 @@ public interface IPokemon : IScriptSource, IDeepCloneable
/// <summary>
/// Suppresses the ability of the Pokémon.
/// </summary>
void SuppressAbility();
bool SuppressAbility();
/// <summary>
/// Returns the currently active ability.
@@ -974,10 +974,14 @@ public class PokemonImpl : ScriptSource, IPokemon
public bool AbilitySuppressed { get; private set; }
/// <inheritdoc />
public void SuppressAbility()
public bool SuppressAbility()
{
if (ActiveAbility?.CanBeChanged == false)
return false;
AbilitySuppressed = true;
AbilityScript.Clear();
return true;
}
private (IAbility, AbilityIndex)? _abilityCache;