Skip to main content

MoveFlag

Enum MoveFlag 

Source
pub enum MoveFlag {
Show 47 variants AccuracyLowering, BypassSubstitute, BypassMaxGuard, Bite, Bullet, CallsMove, Charge, Contact, CrashDamage, Dance, Distance, EvasionRaising, FailCopycat, FailEncore, FailInstruct, FailMeFirst, FailMimic, Future, Gravity, Heal, Max, Mirror, MustPressure, NoAssist, NoMetronome, NoParentalBond, NoSketch, NoSleepTalk, OHKO, PledgeCombo, Powder, Protect, Pulse, Punch, Recharge, Reflectable, SleepInducing, SleepUsable, Slicing, Snatch, Sound, Stalling, Thawing, ThawsTarget, WeakenThroughProtection, Wind, Z,
}
Expand description

Move flags, which categorize moves for miscellaneous behavior (such as bans or side effects).

Variants§

§

AccuracyLowering

Lowers a target’s accuracy.

§

BypassSubstitute

Bypasses a target’s substitute.

§

BypassMaxGuard

Bypasses a target’s Max Guard.

§

Bite

A bite move.

§

Bullet

A bullet move.

§

CallsMove

A move that calls another move.

§

Charge

A charge move, which causes a Mon to be unable to move between turns.

§

Contact

Makes contact.

§

CrashDamage

A move with crash damage.

§

Dance

A dance move.

§

Distance

Can target a Mon no matter its distance from the user.

§

EvasionRaising

Raises the user’s evasion.

§

FailCopycat

Cannot be selected by Copycat.

§

FailEncore

Cannot be targeted by Encore.

§

FailInstruct

Cannot be repeated by Instruct.

§

FailMeFirst

Cannot be selected by Me First.

§

FailMimic

Cannot be copied by Mimic.

§

Future

Damages a target in the future.

§

Gravity

Cannot be used during Gravity’s effect.

§

Heal

Cannot be used during Heal Block’s effect.

§

Max

Can be used in Dynamax.

§

Mirror

Can be copied by Mirror Move.

§

MustPressure

Additional PP is deducted due to Pressure when it ordinarily would not be.

§

NoAssist

Cannot be selected by Assist.

§

NoMetronome

Cannot be used by Metronome.

§

NoParentalBond

Cannot be made to hit twice via Parental Bond.

§

NoSketch

Cannot be copied by Sketch.

§

NoSleepTalk

Cannot be selected by sleep talk.

§

OHKO

A one-hit KO move.

§

PledgeCombo

Gems will not activate, and cannot be redirected by Storm Drain or Lightning Rod.

§

Powder

A powder move.

§

Protect

Blocked by protection moves.

§

Pulse

A pulse move.

§

Punch

A punch move.

§

Recharge

A move requiring recharge if successful.

§

Reflectable

A reflectable move.

§

SleepInducing

A sleep-inducing move.

§

SleepUsable

A sleep-usable move.

§

Slicing

A slicing move.

§

Snatch

Can be stolen from the original user via Snatch.

§

Sound

A sound move.

§

Stalling

A stalling move.

§

Thawing

A thawing move.

§

ThawsTarget

Thaws the target when hit.

§

WeakenThroughProtection

Move is weakened when hitting through protection.

§

Wind

A wind move.

§

Z

A Z-Move.

Trait Implementations§

Source§

impl Clone for MoveFlag

Source§

fn clone(&self) -> MoveFlag

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MoveFlag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MoveFlag

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for MoveFlag

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for MoveFlag

Source§

type Err = String

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for MoveFlag

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MoveFlag

Source§

fn eq(&self, other: &MoveFlag) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MoveFlag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for MoveFlag

Source§

impl StructuralPartialEq for MoveFlag

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,