More abilities, refactor custom triggers to be typed.
All checks were successful
Build / Build (push) Successful in 48s
All checks were successful
Build / Build (push) Successful in 48s
This commit is contained in:
@@ -29,12 +29,9 @@ public class Hail : Script, ILimitedTurnsScript
|
||||
continue;
|
||||
if (pokemon.Types.Contains(iceType))
|
||||
continue;
|
||||
var ignoresHail = false;
|
||||
pokemon.RunScriptHook(x => x.CustomTrigger(CustomTriggers.IgnoreHail, new Dictionary<StringKey, object?>
|
||||
{
|
||||
{ "ignoresHail", ignoresHail },
|
||||
}));
|
||||
if (ignoresHail)
|
||||
var args = new CustomTriggers.IgnoreHailArgs(pokemon);
|
||||
pokemon.RunScriptHook(x => x.CustomTrigger(CustomTriggers.IgnoreHail, args));
|
||||
if (args.Ignore)
|
||||
continue;
|
||||
|
||||
var maxHealth = pokemon.BoostedStats.Hp;
|
||||
|
||||
Reference in New Issue
Block a user