Commit e2ce2446 authored by Huangnan's avatar Huangnan

1,伊兹尼亚描述优化2,奇妙之梦 爱丽丝卡名修改,红宝石飞鹰效果修改,紫水晶雄狮luafix

parent f237e0d5
Pipeline #29761 failed with stages
in 26 minutes and 12 seconds
No preview for this file type
--红宝石飞鹰
local m=60002178
local m=60002206
local cm=_G["c"..m]
function cm.initial_effect(c)
c:EnableCounterPermit(0x625,LOCATION_ONFIELD)
--pendulum summon
aux.EnablePendulumAttribute(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -44,13 +46,13 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
--direct attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetRange(LOCATION_SZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.datg)
c:RegisterEffect(e1)
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_IGNITION)
e11:SetRange(LOCATION_PZONE)
e11:SetCountLimit(1)
e11:SetTarget(cm.target)
e11:SetOperation(cm.operation)
c:RegisterEffect(e11)
end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
......@@ -134,4 +136,20 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.datg(e,c)
return c:IsPosition(POS_FACEUP)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.tg)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function cm.tg(e,c)
return c:IsFaceup() and c:IsAttack(800)
end
\ No newline at end of file
......@@ -2,6 +2,8 @@
local m=60002207
local cm=_G["c"..m]
function cm.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
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