More abilities

This commit is contained in:
2025-06-15 13:20:58 +02:00
parent ec8681eaa9
commit cd6095455a
21 changed files with 251 additions and 29 deletions

View File

@@ -33,7 +33,7 @@ public class Harvest : Script
if (battle.WeatherName != ScriptUtils.ResolveName<Weather.HarshSunlight>() && rng.GetInt(1) != 0)
return;
battle.EventHook.Invoke(new AbilityTriggerEvent(_pokemon));
_ = _pokemon.SetHeldItem(consumedBerry);
_ = _pokemon.ForceSetHeldItem(consumedBerry);
}
}
}