Bug fixes, add type name to TypeIdentifier
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Battle;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "future_sight")]
|
||||
[Script(ScriptCategory.Battle, "future_sight")]
|
||||
public class FutureSightEffect : Script
|
||||
{
|
||||
private int _turnsLeft = 3;
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Battle;
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
using PkmnLib.Static.Utils;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ using PkmnLib.Static;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "geomancy")]
|
||||
public class Geomancy : BaseChargeMove<RequireChargeEffect>
|
||||
{
|
||||
/// <inheritdoc />
|
||||
|
||||
@@ -26,7 +26,7 @@ public class Hail : Script
|
||||
{
|
||||
if (!battle.Library.StaticLibrary.Types.TryGetTypeIdentifier("ice", out var iceType))
|
||||
{
|
||||
iceType = new TypeIdentifier(255);
|
||||
iceType = new TypeIdentifier(255, "non_existent");
|
||||
}
|
||||
foreach (var side in battle.Sides)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user