This commit is contained in:
@@ -6,10 +6,10 @@ namespace PkmnLib.Plugin.Gen7.Scripts.Abilities;
|
||||
/// <see href="https://bulbapedia.bulbagarden.net/wiki/Snow_Cloak_(Ability)">Bulbapedia - Snow Cloak</see>
|
||||
/// </summary>
|
||||
[Script(ScriptCategory.Ability, "snow_cloak")]
|
||||
public class SnowCloak : Script
|
||||
public class SnowCloak : Script, IScriptCustomTrigger, IScriptChangeIncomingAccuracy
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void ChangeIncomingAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
||||
public void ChangeIncomingAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
||||
ref int modifiedAccuracy)
|
||||
{
|
||||
// If the weather is hail, increase evasion by 20%
|
||||
@@ -19,7 +19,7 @@ public class SnowCloak : Script
|
||||
}
|
||||
}
|
||||
|
||||
public override void CustomTrigger(StringKey eventName, ICustomTriggerArgs args)
|
||||
public void CustomTrigger(StringKey eventName, ICustomTriggerArgs args)
|
||||
{
|
||||
if (eventName == CustomTriggers.IgnoreHail && args is CustomTriggers.IgnoreHailArgs hailArgs)
|
||||
hailArgs.Ignore = true;
|
||||
|
||||
Reference in New Issue
Block a user