Commit 495e8149 authored by wind2009's avatar wind2009

Merge remote-tracking branch 'upstream/WPP5' into master

parents 0e9845a5 2008c090
...@@ -87,7 +87,7 @@ function c10158145.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c10158145.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c10158145.splimit(e,c,sump,sumtype,sumpos,targetp) function c10158145.splimit(e,c,sump,sumtype,sumpos,targetp)
return not c:IsType(TYPE_LINK) return c:GetOriginalType()&TYPE_LINK~=TYPE_LINK
end end
function c10158145.condition(e,tp,eg,ep,ev,re,r,rp) function c10158145.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousControler(tp) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousControler(tp)
......
...@@ -76,4 +76,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,4 +76,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp)
if a:IsRelateToEffect(e) and b:IsRelateToEffect(e) then if a:IsRelateToEffect(e) and b:IsRelateToEffect(e) then
Duel.SwapControl(a,b) Duel.SwapControl(a,b)
end end
end end
\ No newline at end of file
...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +97,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -99,4 +99,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,4 +99,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -106,4 +106,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,4 +106,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function s.mfilter(c,e,tp,chk) function s.mfilter(c,e,tp,chk)
return (not chk or c~=e:GetHandler()) and c:IsCode(89631139) return (not chk or c~=e:GetHandler()) and c:IsCode(89631139)
end end
\ No newline at end of file
...@@ -58,4 +58,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,4 +58,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) and aux.NecroValleyFilter()(tc) then if tc:IsRelateToEffect(e) and aux.NecroValleyFilter()(tc) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end end
end end
\ No newline at end of file
...@@ -95,4 +95,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +95,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -87,5 +87,5 @@ function c63060238.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,5 +87,5 @@ function c63060238.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e5,tp) Duel.RegisterEffect(e5,tp)
end end
function c63060238.splimit(e,c,tp,sumtp,sumpos) function c63060238.splimit(e,c,tp,sumtp,sumpos)
return not c:IsType(TYPE_FUSION) return c:GetOriginalType()&TYPE_FUSION~=TYPE_FUSION
end end
...@@ -47,5 +47,5 @@ function c64442155.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,5 +47,5 @@ function c64442155.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c64442155.splimit(e,c) function c64442155.splimit(e,c)
return c:GetType()&0x81~=0x81 return c:GetOriginalType()&0x81~=0x81
end end
...@@ -66,9 +66,9 @@ function s.xop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,9 +66,9 @@ function s.xop(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) or not c:IsLocation(LOCATION_ONFIELD) or not s.xyzfilter(c,tp,e) then return end if not c:IsRelateToEffect(e) or not c:IsLocation(LOCATION_ONFIELD) or not s.xyzfilter(c,tp,e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) then return end if not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) then return end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.xyzfilter),tp,LOCATION_MZONE+LOCATION_HAND+LOCATION_GRAVE,0,c,tp,e) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.xyzfilter),tp,LOCATION_MZONE+LOCATION_HAND+LOCATION_GRAVE,0,1,1,c,tp,e)
if g:GetCount()>0 then if g:GetCount()>0 then
local mg=Group.__add(c,g:Select(tp,1,1,c)) local mg=c+g
if mg:GetCount()==2 then Duel.Overlay(tc,mg) end Duel.Overlay(tc,mg)
end end
end end
\ No newline at end of file
...@@ -96,4 +96,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,4 +96,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.eqlimit(e,c) function s.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
\ No newline at end of file
...@@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(atk) e2:SetValue(atk)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
end end
\ No newline at end of file
...@@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -146,4 +146,4 @@ end ...@@ -146,4 +146,4 @@ end
function s.tgop(e,tp,eg,ep,ev,re,r,rp) function s.tgop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_EXTRA,LOCATION_EXTRA,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_EXTRA,LOCATION_EXTRA,nil)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
\ No newline at end of file
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