Commit 43777c7f authored by TanakaKotoha's avatar TanakaKotoha

modified: expansions/script/c81006017.lua

parent f98ef757
......@@ -4,13 +4,16 @@ function c81006017.initial_effect(c)
aux.EnablePendulumAttribute(c)
c:EnableReviveLimit()
--atk up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_PZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c81006017.ffilter)
e1:SetValue(c81006017.val)
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_UPDATE_ATTACK)
e0:SetRange(LOCATION_PZONE)
e0:SetTargetRange(LOCATION_MZONE,0)
e0:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x344c))
e0:SetValue(c81006017.val)
c:RegisterEffect(e0)
local e1=e0:Clone()
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x445))
c:RegisterEffect(e1)
--atk & def
local e2=Effect.CreateEffect(c)
......@@ -46,9 +49,6 @@ function c81006017.initial_effect(c)
e4:SetOperation(c81006017.desop)
c:RegisterEffect(e4)
end
function c81006017.ffilter(c)
return c:IsSetCard(0x344c) or c:IsSetCard(0x445)
end
function c81006017.val(e,c)
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_ONFIELD,0)*300
end
......
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