pub enum LoseControlCondition {
EndOfTurn,
NextUntap,
EndOfCombat,
LeavesPlay,
}Expand description
When a SP$ GainControl steals a permanent, the revert trigger is stored
here. Fires during the appropriate phase or event handler, at which point
the card’s original_controller_eot is restored.
Mirrors the subset of Java ControlGainEffect.LoseControl$ variants that
schedule a GameCommand. Java also has variants we intentionally skip
here (StaticCommandCheck driven by an SVar comparator, UntilSourceUnattached,
UntilTheEndOfYourNextTurn) — they require either a scheduler that scans
every tick or a turn-owner counter that the engine doesn’t maintain yet.
Variants§
EndOfTurn
Revert at the end of the current turn (default EOT branch).
NextUntap
Revert the next time this card untaps.
EndOfCombat
Revert at end of combat (Threaten-style steal-and-swing).
LeavesPlay
Revert when the card leaves the battlefield.
Trait Implementations§
Source§impl Clone for LoseControlCondition
impl Clone for LoseControlCondition
Source§fn clone(&self) -> LoseControlCondition
fn clone(&self) -> LoseControlCondition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LoseControlCondition
Source§impl Debug for LoseControlCondition
impl Debug for LoseControlCondition
Source§impl<'de> Deserialize<'de> for LoseControlCondition
impl<'de> Deserialize<'de> for LoseControlCondition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for LoseControlCondition
Source§impl FromStr for LoseControlCondition
impl FromStr for LoseControlCondition
Source§impl PartialEq for LoseControlCondition
impl PartialEq for LoseControlCondition
Source§impl Serialize for LoseControlCondition
impl Serialize for LoseControlCondition
impl StructuralPartialEq for LoseControlCondition
Auto Trait Implementations§
impl Freeze for LoseControlCondition
impl RefUnwindSafe for LoseControlCondition
impl Send for LoseControlCondition
impl Sync for LoseControlCondition
impl Unpin for LoseControlCondition
impl UnsafeUnpin for LoseControlCondition
impl UnwindSafe for LoseControlCondition
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.