Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions api/functions/Duel/IsBattlePhase.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---!function
name: IsBattlePhase
namespace: Duel
description: >-
Returns if the current phase is the Battle Phase (between PHASE_BATTLE_START and PHASE_BATTLE)
description: &desc >-
Checks if it is currently the Battle Phase.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: (To be added)
tags: [ under-construction ]
description: >-
`true` if it is currently the Battle Phase, `false` otherwise.
16 changes: 16 additions & 0 deletions api/functions/Duel/IsBattleStep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---!function
name: IsBattleStep
namespace: Duel
description: &desc Checks if it is currently the Battle Step.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Battle Step, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsDamageCalculation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsDamageCalculation
namespace: Duel
description: &desc >-
Checks if it is currently during Damage Calculation.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently during Damage Calculation, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsDamageStep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsDamageStep
namespace: Duel
description: &desc >-
Checks if it is currently the Damage Step.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Damage Step, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsDrawPhase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsDrawPhase
namespace: Duel
description: &desc >-
Checks if it is currently the Draw Phase.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Draw Phase, `false` otherwise.
21 changes: 21 additions & 0 deletions api/functions/Duel/IsEndOfBattlePhase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---!function
name: IsEndOfBattlePhase
namespace: Duel
description: &desc >-
Checks if it is currently the end of the Battle Phase (End Step).
summary: *desc
status:
index: stable
aliases:
- name: Duel.IsEndStep
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If provided, the function will also check if it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the end of the Battle Phase (End Step), `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsEndPhase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsEndPhase
namespace: Duel
description: &desc >-
Checks if it is currently the End Phase.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the End Phase, `false` otherwise.
14 changes: 10 additions & 4 deletions api/functions/Duel/IsMainPhase.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---!function
name: IsMainPhase
namespace: Duel
description: >-
Returns if the current phase is either Main Phase 1 or Main Phase 2.
description: &desc >-
Checks if it is currently the Main Phase.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: (To be added)
tags: [ under-construction ]
description: >-
`true` if it is currently the Main Phase, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsMainPhase1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsMainPhase1
namespace: Duel
description: &desc >-
Checks if it is currently the Main Phase 1.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Main Phase 1, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsMainPhase2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsMainPhase2
namespace: Duel
description: &desc >-
Checks if it is currently the Main Phase 2.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Main Phase 2, `false` otherwise.
17 changes: 17 additions & 0 deletions api/functions/Duel/IsStandbyPhase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: IsStandbyPhase
namespace: Duel
description: &desc >-
Checks if it is currently the Standby Phase.
summary: *desc
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the Standby Phase, `false` otherwise.
21 changes: 21 additions & 0 deletions api/functions/Duel/IsStartOfBattlePhase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---!function
name: IsStartOfBattlePhase
namespace: Duel
description: &desc >-
Checks if it is currently the start of the Battle Phase (Start Step).
summary: *desc
status:
index: stable
aliases:
- name: Duel.IsStartStep
status:
index: stable
parameters:
- name: player
type: [ int ]
description: If `player` is provided it will also check that it is currently that player's turn.
required: false
returns:
- type: [ bool ]
description: >-
`true` if it is currently the start of the Battle Phase (Start Step), `false` otherwise.
24 changes: 12 additions & 12 deletions api/functions/Duel/ProcedureSummon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@
name: ProcedureSummon
namespace: Duel
description: >-
A player (int player) "Procedure Summons" (the SummonType performed is determined by the corresponding parameter) a card (Card c) using "must_use" as part of its materials, choosing among "mg", with "min" and "max" materials to be used for the Summon.
Summons a monster such that it is considered to have been [properly Summoned](https://yugipedia.com/wiki/Special_Summon_Monster#Properly_Special_Summoned).
summary: Summons a monster such that it is considered to have been properly Summoned.
status:
index: stable
parameters:
- name: player
type: [ int ]
description: (To be added)
- name: sumtype
type: [ int ]
description: (To be added)
description: The player performing the Summon.
- name: c
type: [ Card ]
description: (To be added)
description: The monster to Summon.
- name: sumtype
type: [ int ]
description: The [type of the Summon](/api/enums/SummonType).
- name: must_use
type: [ Group, Card, nil ]
description: (To be added)
description: A card(s) that must be used as material for the Summon.
required: false
- name: mg
type: [ Group, Card, nil ]
description: (To be added)
description: A card(s) that the player can choose to use as material for the Summon.
required: false
- name: minc
type: [ int ]
description: (To be added)
description: The minimum amount of materials that can be used for the Summon.
required: false
defaultValue: 0
- name: maxc
type: [ int ]
description: (To be added)
description: The maximum amount of materials that can be used for the Summon.
required: false
defaultValue: 0
tags: [ under-construction ]
defaultValue: 0