Commit 7443f64d authored by TanakaKotoha's avatar TanakaKotoha

lua and cdb fix

parent 18f72f56
No preview for this file type
......@@ -30,7 +30,7 @@ function c33400018.initial_effect(c)
e2:SetOperation(c33400018.addc)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(33400018,ACTIVITY_SPSUMMON,c33400018.counterfilter)
local e3=e1:Clone()
local e3=e2:Clone()
e3:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e3)
--to hand
......
......@@ -7,9 +7,8 @@ function c81018023.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_BATTLE_DAMAGE)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_DAMAGE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,81018023)
e1:SetCondition(c81018023.sumcon)
e1:SetTarget(c81018023.sumtg)
......@@ -40,7 +39,7 @@ function c81018023.initial_effect(c)
c:RegisterEffect(e3)
end
function c81018023.sumcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 and ep~=tp
return ep~=tp
end
function c81018023.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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