Commit 876e7e5c authored by Tianchenglipu's avatar Tianchenglipu

Update c32787239.lua

parent 43bf45f6
--EMラ・パンダ --EMラ・パンダ
function c32787239.initial_effect(c) function c32787239.initial_effect(c)
--pendulum summon --pendulum summon
aux.AddPendulumProcedure(c) aux.EnablePendulumAttribute(c)
--Activate --scale change
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetDescription(aux.Stringid(32787239,0))
e1:SetCode(EVENT_FREE_CHAIN) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_PZONE)
e1:SetCountLimit(1)
e1:SetTarget(c32787239.sctg)
e1:SetOperation(c32787239.scop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--scale change --negate attack
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(32787239,0)) e2:SetDescription(aux.Stringid(32787239,1))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetRange(LOCATION_PZONE) e2:SetCode(EVENT_BE_BATTLE_TARGET)
e2:SetCountLimit(1) e2:SetRange(LOCATION_MZONE)
e2:SetTarget(c32787239.sctg) e2:SetCountLimit(1,32787239)
e2:SetOperation(c32787239.scop) e2:SetCondition(c32787239.condition)
e2:SetOperation(c32787239.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--negate attack
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(32787239,1))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_BE_BATTLE_TARGET)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,32787239)
e3:SetCondition(c32787239.condition)
e3:SetOperation(c32787239.operation)
c:RegisterEffect(e3)
end end
function c32787239.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function c32787239.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetLeftScale()<12 end if chk==0 then return e:GetHandler():GetLeftScale()<12 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