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

2026/2/20 新增:强欲之瓶,幻惑之光

parent aa5a48f5
Pipeline #43341 passed with stages
in 13 minutes and 27 seconds
No preview for this file type
local cm,m=GetID()
cm.name="强欲之瓶"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_PLAYER_TARGET)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_DRAW)
e2:SetCondition(cm.condition)
c:RegisterEffect(e2)
end
--Activate
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and ep==tp
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
RD.TargetDraw(tp,1)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.Draw()
end
\ No newline at end of file
local cm,m=GetID()
local list={120301074}
cm.name="幻惑之光"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.costfilter(c,e,tp)
return c:IsFaceup() and c:IsRace(RACE_SPELLCASTER)
and Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_MZONE,1,nil,c:GetAttribute())
end
function cm.filter(c,attr)
return c:IsFaceup() and not c:IsAttribute(attr)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsPlayerNoActivateInThisTurn(tp,list[1])
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_MZONE,0,nil,e,tp)
if chk==0 then return g:GetCount()>0 end
local attr=0
local tc=g:GetFirst()
while tc do
attr=attr|tc:GetAttribute()
tc=g:GetNext()
end
e:SetLabel(Duel.AnnounceAttribute(tp,1,attr))
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:IsCostChecked() end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local attr=e:GetLabel()
local filter=RD.Filter(cm.filter,attr)
RD.SelectAndDoAction(aux.Stringid(m,1),filter,tp,0,LOCATION_MZONE,1,1,nil,function(g)
RD.ChangeAttribute(e,g:GetFirst(),attr,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsCanTurnSet()
and Duel.SelectEffectYesNo(tp,c,aux.Stringid(m,2)) then
c:CancelToGrave()
Duel.ChangePosition(c,POS_FACEDOWN)
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
end
\ No newline at end of file
...@@ -27,6 +27,7 @@ https://yugipedia.com/wiki/Category:Rush_Duel_cards ...@@ -27,6 +27,7 @@ https://yugipedia.com/wiki/Category:Rush_Duel_cards
- **January 10, 2026**: Advance Pack Revenge Hearts (RD/AP02-JP): `120298XXX` - **January 10, 2026**: Advance Pack Revenge Hearts (RD/AP02-JP): `120298XXX`
- **December 20, 2026**: Duel Links (RD/DL01-JP): `120299XXX` - **December 20, 2026**: Duel Links (RD/DL01-JP): `120299XXX`
- **February 14, 2026**: Overforce of the Abyss (RD/KP24-JP): `120300XXX` - **February 14, 2026**: Overforce of the Abyss (RD/KP24-JP): `120300XXX`
- **April 11, 2026**: Over Rush Pack 4 (RD/ORP4-JP): `120301XXX`
# Archived # Archived
- **April 3, 2020** : Saikyō Jump May 2020 promotional card (RD/SJMP-JP) : `120100XXX` - **April 3, 2020** : Saikyō Jump May 2020 promotional card (RD/SJMP-JP) : `120100XXX`
......
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