Even more abilities
Build / Build (push) Successful in 52s

This commit is contained in:
Deukhoofd committed 2025-06-14 11:30:56 +02:00
1 parent 24712fbb0d
commit 6c13d20bf7
13 files changed
+278 -12

No files matched your search

@@ -1,7 +1,7 @@
namespace PkmnLib.Plugin.Gen7.Scripts.Weather;
[Script(ScriptCategory.Weather, "primordial_sea")]
public class PrimordialSea : Script
public class PrimordialSea : Rain
{
private HashSet<IPokemon> _placers = new();
@@ -26,4 +26,16 @@ public class PrimordialSea : Script
return;
preventWeatherChange = true;
}
public override void FailMove(IExecutingMove move, ref bool fail)
{
if (move.UseMove.MoveType.Name == "fire")
fail = true;
}
/// <inheritdoc />
public override void OnEndTurn(IBattle battle)
{
// We don't want to call base.OnEndTurn here, as we want to prevent the weather from ending
}
}