Commit e0ecd780 authored by DailyShana's avatar DailyShana

change

parent f601767d
...@@ -14,25 +14,28 @@ function c33698022.initial_effect(c) ...@@ -14,25 +14,28 @@ function c33698022.initial_effect(c)
e1:SetTarget(c33698022.thtg) e1:SetTarget(c33698022.thtg)
e1:SetOperation(c33698022.thop) e1:SetOperation(c33698022.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=e1:Clone()
e2:SetDescription(aux.Stringid(33698022,1)) e2:SetDescription(aux.Stringid(33698022,1))
e2:SetCategory(CATEGORY_TOHAND) e2:SetCode(33698022)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,33698022)
e2:SetCondition(c33698022.thcon)
e2:SetTarget(c33698022.thtg)
e2:SetOperation(c33698022.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--event
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c33698022.evcon)
e3:SetOperation(c33698022.evop)
c:RegisterEffect(e3)
end end
function c33698022.cfilter(c,tp) function c33698022.cfilter(c,tp)
return c:IsFaceup() and c:IsLevelAbove(5) and c:IsControler(tp) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsControler(tp)
end end
function c33698022.thcon(e,tp,eg,ep,ev,re,r,rp) function c33698022.evcon(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c33698022.cfilter,1,nil,1-tp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(c33698022.cfilter,1,nil,1-tp)
end end
function c33698022.evop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseSingleEvent(e:GetHandler(),33698022,re,r,rp,ep,ev)
end
function c33698022.filter(c) function c33698022.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToHand() return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToHand()
end 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