15 lines
476 B
C#
15 lines
476 B
C#
using PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
namespace PkmnLib.Plugin.Gen7.Scripts.Moves;
|
|
|
|
[Script(ScriptCategory.Move, "mean_look")]
|
|
public class MeanLook : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void OnSecondaryEffect(IExecutingMove move, IPokemon target, byte hit)
|
|
{
|
|
var targetEffect = target.Volatile.Add(new MeanLookEffectTarget());
|
|
var userEffect = new MeanLookEffectUser(targetEffect);
|
|
move.User.Volatile.Add(userEffect);
|
|
}
|
|
} |