Commit 4d60696e authored by mercury233's avatar mercury233

fix

parent 0218c086
......@@ -43,11 +43,10 @@ function c4538826.initial_effect(c)
c:RegisterEffect(e4)
--redirect
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetCondition(c4538826.dbcon)
e5:SetValue(LOCATION_DECKBOT)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetOperation(c4538826.spreg)
c:RegisterEffect(e5)
end
function c4538826.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -124,6 +123,13 @@ function c4538826.gyop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,dc*300,REASON_EFFECT)
end
end
function c4538826.dbcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
function c4538826.spreg(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
e1:SetValue(LOCATION_DECKBOT)
c:RegisterEffect(e1)
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