Commit 5c83a7c6 authored by 未闻皂名's avatar 未闻皂名

2024/12/27 新增:对峙黑龙, 骰子炸药美腿女郎·火焰小双骰, 优化龙族融合的卡顿

parent a5160827
Pipeline #32128 passed with stages
in 10 minutes and 19 seconds
No preview for this file type
...@@ -26,6 +26,7 @@ function cm.matcheck(tp,sg,fc) ...@@ -26,6 +26,7 @@ function cm.matcheck(tp,sg,fc)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetFusionMaterial(tp):IsExists(cm.matfilter,1,nil)
end end
function cm.limit(e,tp,eg,ep,ev,re,r,rp) function cm.limit(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,m)~=0 then return end if Duel.GetFlagEffect(tp,m)~=0 then return end
......
local m=120274030
local cm=_G["c"..m]
cm.name="对峙黑龙"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter1(c)
return c:IsFaceup() and c:IsLevelAbove(7) and c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_FIRE)
and c:IsRace(RACE_DRAGON)
end
function cm.confilter2(c,tp)
return c:GetSummonPlayer()==tp and c:IsType(TYPE_EFFECT)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter1,tp,LOCATION_MZONE,0,1,nil)
and eg:IsExists(cm.confilter2,1,nil,1-tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst()
if chk==0 then return RD.IsCanChangePosition(tc) and tc:IsCanTurnSet() end
Duel.SetTargetCard(tc)
Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
if tc:IsRelateToEffect(e) then
RD.ChangePosition(tc,POS_FACEDOWN_DEFENSE)
end
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
if g:GetCount()>2 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
RD.SendOpponentHandToGrave(tp,aux.Stringid(m,2),1,1)
end
end
\ No newline at end of file
local m=120277045
local list={120260067,120272007}
local cm=_G["c"..m]
cm.name="骰子炸药美腿女郎·火焰小双骰"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[2])
--Dice
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DICE+CATEGORY_DESTROY+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
cm.toss_dice=true
--Dice
cm.cost=RD.CostSendDeckTopToGrave(2)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local d1,d2=Duel.TossDice(tp,2)
local res=d1+d2
if res==7 or res==11 then
local mg=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
if Duel.Destroy(mg,REASON_EFFECT)~=0 and c:IsFaceup() and c:IsRelateToEffect(e) then
Duel.BreakEffect()
RD.AttachAtkDef(e,c,2000,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end
else
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachAtkDef(e,c,res*100,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment