Bunch more moves, changes in how additional information for items works.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "mean_look_user")]
|
||||
public class MeanLookEffectUser : Script
|
||||
{
|
||||
private readonly ScriptContainer _targetScriptEffect;
|
||||
|
||||
public MeanLookEffectUser(ScriptContainer targetScriptEffect)
|
||||
{
|
||||
_targetScriptEffect = targetScriptEffect;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnRemove()
|
||||
{
|
||||
// Remove the effect from the target
|
||||
_targetScriptEffect.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
[Script(ScriptCategory.Pokemon, "mean_look_target")]
|
||||
public class MeanLookEffectTarget : Script
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public override void PreventSelfSwitch(ISwitchChoice choice, ref bool prevent) => prevent = true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void PreventSelfRunAway(IFleeChoice choice, ref bool prevent) => prevent = true;
|
||||
}
|
||||
Reference in New Issue
Block a user