Duel.BreakEffect
Signature
Duel.BreakEffect() -> voidDescription
Separates the current resolving effect into a later timing window, then raises EVENT_BREAK_EFFECT. Use this when card text says to do one action, then do another action afterward, so later triggers do not see both actions as simultaneous. Do not use this for simultaneous damage/recovery batches; those use stepped Duel.Damage or Duel.Recover calls followed by Duel.RDComplete.
How To Use It
Use this between sequential parts of one resolving effect when later timing should see the first part before the next part happens.
if Duel.Destroy(tc,REASON_EFFECT)>0 then
Duel.BreakEffect()
Duel.Damage(1-tp,500,REASON_EFFECT)
endDo not use it for simultaneous damage/recovery. Simultaneous LP batches use stepped Duel.Damage or Duel.Recover plus Duel.RDComplete().
Related Functions
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4927
Guided Examples
Learn how to use this function in context:
- Field Spells
- Fusion Procedure Guide
- LP Recovery and Effect Damage
- Operation Results And Follow-Up Effects
- Ritual Procedure Guide
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 2000 indexed script(s).
- Search this function in the Script Explorer with
Duel.BreakEffect.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
c:RegisterEffect(e2)
if Duel.IsExistingMatchingCard(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
local tc=sg:GetFirst()
if tc then
Duel.BreakEffect()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
endArtmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
tc:SetMaterial(mat1)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
elseif ce then