Commit 72a3e616 authored by mercury233's avatar mercury233

fix

parent 89199908
...@@ -25,6 +25,7 @@ function c100227040.initial_effect(c) ...@@ -25,6 +25,7 @@ function c100227040.initial_effect(c)
e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c100227040.atkcon2) e2:SetCondition(c100227040.atkcon2)
e2:SetCost(c100227040.atkcost2)
e2:SetOperation(c100227040.atkop2) e2:SetOperation(c100227040.atkop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--spsummon --spsummon
...@@ -64,6 +65,11 @@ function c100227040.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,6 +65,11 @@ function c100227040.atkop(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext() tc=g:GetNext()
end end
end end
function c100227040.atkcost2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(100227040)==0 end
c:RegisterFlagEffect(100227040,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_DAMAGE_CAL,0,1)
end
function c100227040.atkcon2(e,tp,eg,ep,ev,re,r,rp) function c100227040.atkcon2(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
......
...@@ -43,8 +43,8 @@ c100409012.material_setcode=0x1093 ...@@ -43,8 +43,8 @@ c100409012.material_setcode=0x1093
function c100409012.cfilter(c) function c100409012.cfilter(c)
return c:IsType(TYPE_FUSION) and c:IsRace(RACE_MACHINE) return c:IsType(TYPE_FUSION) and c:IsRace(RACE_MACHINE)
end end
function c100409012.indcon(e,tp,eg,ep,ev,re,r,rp) function c100409012.indcon(e)
return Duel.IsExistingMatchingCard(c100409012.cfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c100409012.cfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil)
end end
function c100409012.spcon(e,tp,eg,ep,ev,re,r,rp) function c100409012.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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