26 lines
764 B
C#
26 lines
764 B
C#
namespace PkmnLib.Plugin.Gen7.Scripts.Pokemon;
|
|
|
|
[Script(ScriptCategory.Pokemon, "telekinesis")]
|
|
public class TelekinesisEffect : Script
|
|
{
|
|
/// <inheritdoc />
|
|
public override void ChangeIncomingAccuracy(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
|
ref int modifiedAccuracy)
|
|
{
|
|
modifiedAccuracy = 255;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void IsFloating(IPokemon pokemon, ref bool isFloating)
|
|
{
|
|
isFloating = true;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override void ChangeIncomingEffectiveness(IExecutingMove executingMove, IPokemon target, byte hitIndex,
|
|
ref float effectiveness)
|
|
{
|
|
if (executingMove.UseMove.MoveType.Name == "ground")
|
|
effectiveness = 0;
|
|
}
|
|
} |