Commit 7588a851 authored by GuGu's avatar GuGu

Update c20061.lua 神必的攻防加成

parent 95e4747e
Pipeline #18502 passed with stage
in 1 minute and 3 seconds
......@@ -20,7 +20,7 @@ function c20061.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x186))
e3:SetTarget(c20061.atktg)
e3:SetValue(400)
c:RegisterEffect(e3)
--defup
......@@ -29,22 +29,9 @@ function c20061.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_DEFENSE)
e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x186))
e4:SetTarget(c20061.atktg)
e4:SetValue(400)
c:RegisterEffect(e4)
--
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_UPDATE_ATTACK)
e5:SetRange(LOCATION_MZONE)
e5:SetValue(-400)
c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_UPDATE_DEFENSE)
e6:SetRange(LOCATION_MZONE)
e6:SetValue(-400)
c:RegisterEffect(e6)
end
function c20061.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 end
......@@ -72,3 +59,6 @@ function c20061.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
end
end
function c20061.atktg(e,c)
return c:IsSetCard(0x186) and c~=e:GetHandler()
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