First couple abilities implemented
Build / Build (push) Successful in 48s

This commit is contained in:
Deukhoofd committed 2025-05-31 12:29:03 +02:00
1 parent c1a7b806b1
commit b090aa65f9
34 files changed
+733 -50

No files matched your search

+7
View File
@@ -546,6 +546,13 @@ public abstract class Script : IDeepCloneable
{
}
/// <summary>
/// This function is triggered on a Pokemon and its parents when an opponent switches in.
/// </summary>
public virtual void OnOpponentSwitchIn(IPokemon pokemon, byte position)
{
}
/// <summary>
/// This function is triggered on a Pokemon and its parents when the given Pokemon consumes the
/// held item it had.
@@ -34,10 +34,7 @@ public class ScriptResolver
}
script = scriptCtor();
if (parameters != null)
{
script.OnInitialize(parameters);
}
script.OnInitialize(parameters);
return true;
}