Commit e69fa44e authored by Vury Leo's avatar Vury Leo

update script

parent a72fdb19
No preview for this file type
...@@ -60,21 +60,21 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,21 +60,21 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.disop(e,tp,eg,ep,ev,re,r,rp) function s.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=re:GetHandler() local rc=re:GetHandler()
if Duel.NegateEffect(ev) then if Duel.NegateEffect(ev) and rc:IsRelateToEffect(re) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_SOLVING) e1:SetCode(EVENT_CHAIN_SOLVING)
e1:SetCondition(s.discon1) e1:SetCondition(s.discon1)
e1:SetOperation(s.disop1) e1:SetOperation(s.disop1)
e1:SetLabelObject(tc) e1:SetLabelObject(rc)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function s.discon1(e,tp,eg,ep,ev,re,r,rp) function s.discon1(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
return re:GetHandler():IsOriginalCodeRule(tc:GetOriginalCodeRule()) return re:GetHandler():IsOriginalCodeRule(tc:GetOriginalCodeRule()) and re:IsActiveType(TYPE_MONSTER)
end end
function s.disop1(e,tp,eg,ep,ev,re,r,rp) function s.disop1(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
......
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