This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user