Commit 115b8a36 authored by Mr.Tan's avatar Mr.Tan

Update c101208069.lua

parent f17a8e22
......@@ -69,17 +69,18 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(700)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
sc:RegisterEffect(e2)
local fid=c:GetFieldID()
local fid=sc:GetFieldID()
sc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1,fid)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetCountLimit(1)
e3:SetLabel(fid)
e3:SetLabelObject(tc)
e3:SetLabelObject(sc)
e3:SetCondition(s.thcon1)
e3:SetOperation(s.thop1)
Duel.RegisterEffect(e1,tp)
Duel.RegisterEffect(e3,tp)
end
end
function s.eqlimit(e,c)
......@@ -98,7 +99,7 @@ function s.thop1(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(e:GetLabelObject(),nil,REASON_EFFECT)
end
function s.thcfilter(c,tp)
return (c:IsLevelAbove(8) or c:IsRankAbove(8)) and c:IsPreviousControler(1-tp)
return (c:GetPreviousLevelOnField()>=8 or c:GetPreviousRankOnField()>=8) and c:IsPreviousControler(1-tp)
end
function s.thcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.thcfilter,1,nil,tp)
......
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