mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Add CardKeyword::Attack
This commit is contained in:
parent
e1edda3041
commit
9ed2220be9
1 changed files with 8 additions and 0 deletions
|
@ -352,6 +352,12 @@ pub enum CardKeyword {
|
|||
/// > A Captured card is removed from the game. It returns when the Capturing unit leaves play.
|
||||
Capture,
|
||||
|
||||
/// Attack.
|
||||
///
|
||||
/// > Get this effect when this unit attacks.
|
||||
#[serde(rename = "AttackSkillMark")]
|
||||
Attack,
|
||||
|
||||
/// Unsupported card keyword.
|
||||
#[serde(other)]
|
||||
Unsupported,
|
||||
|
@ -447,6 +453,7 @@ impl CardKeyword {
|
|||
CardKeyword::BlockElusive => "",
|
||||
CardKeyword::Flow => "",
|
||||
CardKeyword::Capture => "<:capture:1056024295190577153>",
|
||||
CardKeyword::Attack => "",
|
||||
CardKeyword::Unsupported => "<:invaliddeck:1056022952396730438>",
|
||||
}
|
||||
}
|
||||
|
@ -542,5 +549,6 @@ mod tests {
|
|||
test_deserialization!(deserialize_flow, r#""Flow""#, CardKeyword::Flow);
|
||||
test_deserialization!(deserialize_equipment, r#""Equipment""#, CardKeyword::Equipment);
|
||||
test_deserialization!(deserialize_capture, r#""Capture""#, CardKeyword::Capture);
|
||||
test_deserialization!(deserialize_attack, r#""AttackSkillMark""#, CardKeyword::Attack);
|
||||
test_deserialization!(deserialize_unsupported, r#""Xyzzy""#, CardKeyword::Unsupported);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue