This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user