Commit b9bf9b90 authored by wind2009's avatar wind2009

Update 魂を刻む右

parent 030089c6
Pipeline #27989 passed with stages
in 1 minute and 1 second
...@@ -78,23 +78,22 @@ function s.atkfilter(c,atk) ...@@ -78,23 +78,22 @@ function s.atkfilter(c,atk)
end end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
local qc=e:GetHandler():GetEquipTarget() local qc=e:GetHandler():GetEquipTarget()
local atk=qc:GetAttack() if chk==0 then return qc and Duel.IsExistingMatchingCard(s.atkfilter,tp,0,LOCATION_MZONE,1,nil,qc:GetAttack()) end
if chk==0 then return qc and Duel.IsExistingMatchingCard(s.atkfilter,tp,0,LOCATION_MZONE,1,nil,atk) end
end end
function s.atkop(e,tp,eg,ep,ev,re,r,rp) function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local qc=e:GetHandler():GetEquipTarget() local qc=e:GetHandler():GetEquipTarget()
local atk=qc:GetAttack() if qc and qc:IsType(TYPE_MONSTER) and qc:IsFaceup() then
local c=e:GetHandler() local atk=qc:GetAttack()
local g=Duel.GetMatchingGroup(s.atkfilter,tp,0,LOCATION_MZONE,nil,atk) local g=Duel.GetMatchingGroup(s.atkfilter,tp,0,LOCATION_MZONE,nil,atk)
local tc=g:GetFirst() for tc in aux.Next(g) do
for tc in aux.Next(g) do local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(atk)
e1:SetValue(atk) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1)
tc:RegisterEffect(e1) end
end end
end end
function s.atkcon2(e,tp,eg,ep,ev,re,r,rp) function s.atkcon2(e,tp,eg,ep,ev,re,r,rp)
......
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