Bunch more moves, changes in how additional information for items works.
This commit is contained in:
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Mist.cs
Normal file
17
Plugins/PkmnLib.Plugin.Gen7/Scripts/Moves/Mist.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using PkmnLib.Plugin.Gen7.Scripts.Side;
|
||||
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
||||
|
||||
[Script(ScriptCategory.Move, "mist")]
|
||||
public class Mist : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
||||
{
|
||||
var battleData = move.User.BattleData;
|
||||
if (battleData == null)
|
||||
return;
|
||||
|
||||
battleData.BattleSide.VolatileScripts.Add(new MistEffect());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user