Commit 6c2539e7 authored by TanakaKotoha's avatar TanakaKotoha

fix lua and cdb

parent f5c4f369
No preview for this file type
......@@ -36,7 +36,7 @@ function c33400306.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_TO_GRAVE)
e4:SetCondition(c33400306.indcon)
e4:SetCondition(c33400306.indcon2)
e4:SetTarget(c33400306.adtg)
e4:SetOperation(c33400306.adop)
c:RegisterEffect(e4)
......@@ -45,6 +45,11 @@ function c33400306.mfilter(c)
return not c:IsType(TYPE_RITUAL)
end
function c33400306.indcon(e)
local c=e:GetHandler()
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and not mg:IsExists(c33400306.mfilter,1,nil)
end
function c33400306.indcon2(e)
local c=e:GetHandler()
local mg=c:GetMaterial()
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and not mg:IsExists(c33400306.mfilter,1,nil)
......
......@@ -28,7 +28,7 @@ function c65050199.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1+EFFECT_COUNT_CODE_SINGLE)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(c65050199.con1)
e3:SetTarget(c65050199.tg)
e3:SetOperation(c65050199.op)
......
......@@ -36,7 +36,7 @@ function c65050208.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1+EFFECT_COUNT_CODE_SINGLE)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(c65050208.con1)
e3:SetTarget(c65050208.tg)
e3:SetOperation(c65050208.op)
......
......@@ -23,8 +23,11 @@ end
--Reika effect condition
function Tenka.ReikaCon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer()
for i=0,4 do
if Duel.GetFieldCard(tp,LOCATION_SZONE,i) then return false end
if Duel.IsPlayerAffectedByEffect(tp,81015050) then
return true else
for i=0,4 do
if Duel.GetFieldCard(tp,LOCATION_SZONE,i) then return false end
end
end
return true
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