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: 14 additions & 0 deletions deprecated_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ end
--Functions deprecated since version 41.0:
make_deprecated_function_no_replacement("Duel.GetEnvironment", "You should use Duel.IsEnvironment to check if a field spell is active on the field.")
make_deprecated_function_no_replacement("Duel.GetTributeCount", "You should use Duel.CheckTribute and relative functions to check if a monster can be tribute summoned.")
make_deprecated_function_alias("Auxiliary.selfbanishcost","Cost.SelfBanish")
make_deprecated_function_alias("Auxiliary.SelfBanishCost","Cost.SelfBanish")
make_deprecated_function_alias("Auxiliary.DiscardCost","Cost.Discard")
make_deprecated_function_alias("Auxiliary.dxmcostgen","Cost.Detach")
make_deprecated_function_alias("Auxiliary.selfreleasecost","Cost.SelfRelease")
make_deprecated_function_alias("Auxiliary.SelfReleaseCost","Cost.SelfRelease")
make_deprecated_function_alias("Auxiliary.SelfTributeCost","Cost.SelfRelease")
make_deprecated_function_alias("Auxiliary.SelfToGraveCost","Cost.SelfToGrave")
make_deprecated_function_alias("Auxiliary.SelfToHandCost","Cost.SelfToHand")
make_deprecated_function_alias("Auxiliary.SelfToDeckCost","Cost.SelfToDeck")
make_deprecated_function_alias("Auxiliary.SelfToExtraCost","Cost.SelfToExtra")
make_deprecated_function_alias("Auxiliary.SelfDiscardCost","Cost.SelfDiscard")
make_deprecated_function_alias("Auxiliary.SelfDiscardToGraveCost","Cost.SelfDiscardToGrave")
make_deprecated_function_alias("Auxiliary.SelfRevealCost","Cost.SelfReveal")

--Functions deprecated since version 40.0 and deleted in 41.0:
make_deleted_replaced_function("Auxiliary.AskAny","Duel.AskAny")
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101301042.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function s.initial_effect(c)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetCondition(s.ctcon)
e5:SetCost(aux.dxmcostgen(1,1,nil))
e5:SetCost(Cost.Detach(1))
e5:SetTarget(s.cttg)
e5:SetOperation(s.ctop)
c:RegisterEffect(e5,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101301043.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function s.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,id)
e1:SetCondition(function(e) return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,{SET_ZUBABA,SET_GAGAGA,SET_GOGOGO,SET_DODODO}) end)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.thtg)
e1:SetOperation(s.thop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion pre-release/c101301044.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,0,EFFECT_COUNT_CODE_CHAIN)
e1:SetCondition(s.atkcon)
e1:SetCost(aux.dxmcostgen(2,2,nil))
e1:SetCost(Cost.Detach(2))
e1:SetTarget(s.atktg)
e1:SetOperation(s.atkop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c111011904.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function s.initial_effect(c)
e2:SetHintTiming(0,TIMING_STANDBY_PHASE+TIMINGS_CHECK_MONSTER)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.actg)
e2:SetOperation(s.acop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000041.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetCode(EVENT_DAMAGE_STEP_END)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(s.cacon)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.catg)
e2:SetOperation(s.caop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000183.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function s.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(s.negcon)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.negtg)
e3:SetOperation(s.negop)
c:RegisterEffect(e3,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000230.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLED)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000231.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLED)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000232.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLED)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000233.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLED)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000277.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetCondition(s.damcon)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.damtg)
e1:SetOperation(s.damop)
e1:SetLabel(e:GetLabel())
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000369.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function s.initial_effect(c)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetCountLimit(1)
e4:SetRange(LOCATION_MZONE)
e4:SetCost(aux.dxmcostgen(1,1,nil))
e4:SetCost(Cost.Detach(1))
e4:SetOperation(s.regop)
c:RegisterEffect(e4,false,REGISTER_FLAG_DETACH_XMAT)
--Cannot be destroyed by battle
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511000675.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001371.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.cttg)
e3:SetOperation(s.ctop)
--destroy
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001372.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function s.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.target)
e3:SetOperation(s.operation)
--win
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001374.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function s.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(TIMING_BATTLE_PHASE,TIMING_BATTLE_PHASE)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.efftg)
e2:SetOperation(s.effop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001429.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.tg)
e2:SetOperation(s.op)
--indes
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001430.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function s.initial_effect(c)
e2:SetCode(511001265)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(s.damcon)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.damtg)
e2:SetOperation(s.damop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001431.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function s.initial_effect(c)
e3:SetCategory(CATEGORY_DISABLE)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.distg)
e3:SetOperation(s.disop)
local e4=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511001777.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function s.initial_effect(c)
e5:SetRange(LOCATION_MZONE)
e5:SetCountLimit(1)
e5:SetCondition(s.spcon)
e5:SetCost(aux.dxmcostgen(1,1,nil))
e5:SetCost(Cost.Detach(1))
e5:SetTarget(s.sptg)
e5:SetOperation(s.spop)
--
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002091.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function s.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCondition(s.damcon)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.damtg)
e1:SetOperation(s.damop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002111.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function s.initial_effect(c)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(s.discon)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.distg)
e2:SetOperation(s.disop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002482.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.target)
e2:SetOperation(s.operation)
local e3=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002727.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function s.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e4:SetCondition(function(e,tp) return Duel.GetBattleDamage(tp)>=Duel.GetLP(tp) end)
e4:SetCost(aux.dxmcostgen(1,1,nil))
e4:SetCost(Cost.Detach(1))
e4:SetOperation(s.damop)
c:RegisterEffect(e4,false,REGISTER_FLAG_DETACH_XMAT)
end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002737.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
e1:SetCode(511001265)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(s.damcon)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.damtg)
e1:SetOperation(s.damop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
4 changes: 2 additions & 2 deletions unofficial/c511002866.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.target)
e2:SetOperation(s.operation)
--destroy
Expand All @@ -33,7 +33,7 @@ function s.initial_effect(c)
e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(s.descon)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.destg)
e3:SetOperation(s.desop)
--
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002870.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_ATKCHANGE)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.disatkchtg)
e2:SetOperation(s.disatkchop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002871.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function s.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_CHAINING)
e3:SetCondition(s.condition)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.target)
e3:SetOperation(s.operation)
local e4=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002872.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.destg)
e3:SetOperation(s.desop)
local e4=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511002896.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(function(e,tp) return Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() and not (Duel.IsPhase(PHASE_DAMAGE) and Duel.IsDamageCalculated()) end)
e1:SetCost(aux.dxmcostgen(1,1,nil))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.atktg)
e1:SetOperation(s.atkop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511003236.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function s.initial_effect(c)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e1:SetCountLimit(1)
e1:SetCondition(s.atkcon)
e1:SetCost(aux.dxmcostgen(1,1))
e1:SetCost(Cost.Detach(1))
e1:SetTarget(s.atktg)
e1:SetOperation(s.atkop)
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010007.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(TIMING_DAMAGE_STEP)
e2:SetCondition(s.atkcon)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.atktg)
e2:SetOperation(s.atkop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010009.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function s.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(s.dacon)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetOperation(s.daop)
c:RegisterEffect(e3,false,REGISTER_FLAG_DETACH_XMAT)
--Cannot be destroyed by battle, except by "Number" monsters
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010103.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetCode(511001265)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.destg)
e2:SetOperation(s.desop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010105.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(TIMING_BATTLE_PHASE)
e2:SetCondition(function() return Duel.IsBattlePhase() end)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.target)
e2:SetOperation(s.operation)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010107.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function s.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(function(e,tp) return Duel.IsTurnPlayer(1-tp) end)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.distg)
e2:SetOperation(s.disop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010165.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetTarget(s.target)
e2:SetOperation(s.operation)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010192.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.distg)
e3:SetOperation(s.disop)
local e4=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010196.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_ATTACK_ANNOUNCE)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(aux.dxmcostgen(1,1,nil))
e3:SetCost(Cost.Detach(1))
e3:SetTarget(s.atktg)
e3:SetOperation(s.atkop)
local e4=Effect.CreateEffect(c)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010205.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function s.initial_effect(c)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_MZONE)
e4:SetCost(aux.dxmcostgen(1,1,nil))
e4:SetCost(Cost.Detach(1))
e4:SetCondition(s.atkcon)
e4:SetTarget(s.atktg)
e4:SetOperation(s.atkop)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c511010207.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(aux.dxmcostgen(1,1,nil))
e2:SetCost(Cost.Detach(1))
e2:SetOperation(s.negop)
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
--Double Snare
Expand Down
Loading