Commit 47e02faa authored by Huangnan's avatar Huangnan

172s/230s/502sfix

parent 67bec91b
Pipeline #24576 passed with stages
in 31 minutes and 27 seconds
No preview for this file type
expansions/pics/50223100.jpg

82.4 KB | W: | H:

expansions/pics/50223100.jpg

151 KB | W: | H:

expansions/pics/50223100.jpg
expansions/pics/50223100.jpg
expansions/pics/50223100.jpg
expansions/pics/50223100.jpg
  • 2-up
  • Swipe
  • Onion skin
--米勒山谷 狼王 --米勒山谷 狼王
local m=110200001 local m=17243300
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--summon with 3 tribute --summon with 3 tribute
...@@ -12,11 +12,11 @@ function cm.initial_effect(c) ...@@ -12,11 +12,11 @@ function cm.initial_effect(c)
e1:SetOperation(cm.ttop) e1:SetOperation(cm.ttop)
e1:SetValue(SUMMON_TYPE_ADVANCE) e1:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e8=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e8:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e8:SetCode(EFFECT_LIMIT_SET_PROC) e2:SetCode(EFFECT_LIMIT_SET_PROC)
e8:SetCondition(cm.setcon) e2:SetCondition(cm.setcon)
c:RegisterEffect(e8) c:RegisterEffect(e2)
--summon --summon
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
......
--米勒山谷 狼美人 --米勒山谷 狼美人
local m=110200003 local m=17243302
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--summon with 3 tribute --summon with 3 tribute
......
--米勒山谷 隐狼 --米勒山谷 隐狼
local m=110200004 local m=17243303
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--search extra --search extra
......
--米勒山谷 血月使徒 --米勒山谷 血月使徒
local m=110200005 local m=17243304
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--tohand --tohand
......
--米勒山谷 狼人 --米勒山谷 狼人
local m=110200006 local m=17243305
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--special summon --special summon
......
--米勒山谷 狼巫 --米勒山谷 狼巫
local m=110200007 local m=17243306
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--special summon --special summon
......
--大灰狼 --大灰狼
local m=110200009 local m=17243308
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
......
--米勒山谷 血月 --米勒山谷 血月
local m=110200010 local m=17243309
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--Activate --Activate
......
--米勒山谷 夜之贵族 --米勒山谷 夜之贵族
local m=110200011 local m=17243310
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--Activate --Activate
......
...@@ -72,7 +72,7 @@ end ...@@ -72,7 +72,7 @@ end
function cm.slevel(e,c) function cm.slevel(e,c)
local lv=aux.GetCappedLevel(e:GetHandler()) local lv=aux.GetCappedLevel(e:GetHandler())
if not c:IsCode(23000640) then return lv end if not c:IsCode(23000640) then return lv end
return (2<<16)+lv return (1<<16)+lv
end end
function cm.cfilter(c) function cm.cfilter(c)
return bm.c.cpos(c,tcode) and not c:IsType(TYPE_TUNER) return bm.c.cpos(c,tcode) and not c:IsType(TYPE_TUNER)
......
...@@ -43,8 +43,7 @@ end ...@@ -43,8 +43,7 @@ end
c50218118.lvup={50218117} c50218118.lvup={50218117}
c50218118.lvdn={50218117,50218116} c50218118.lvdn={50218117,50218116}
function c50218118.aclimit(e,re,tp) function c50218118.aclimit(e,re,tp)
local loc=re:GetActivateLocation() return re:GetActivateLocation()==LOCATION_GRAVE
return loc==LOCATION_GRAVE and not re:GetHandler():IsImmuneToEffect(e)
end end
function c50218118.dscon(e,tp,eg,ep,ev,re,r,rp) function c50218118.dscon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DRAW return Duel.GetCurrentPhase()~=PHASE_DRAW
......
...@@ -85,8 +85,7 @@ function c50218136.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,8 +85,7 @@ function c50218136.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c50218136.aclimit(e,re,tp) function c50218136.aclimit(e,re,tp)
local loc=re:GetActivateLocation() return re:GetActivateLocation()==LOCATION_GRAVE or re:GetActivateLocation()==LOCATION_REMOVED
return (loc==LOCATION_GRAVE or loc==LOCATION_REMOVED) and not re:GetHandler():IsImmuneToEffect(e)
end end
function c50218136.cfilter(c,tp) function c50218136.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK) return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
......
...@@ -10,6 +10,7 @@ function c50218565.initial_effect(c) ...@@ -10,6 +10,7 @@ function c50218565.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCost(c50218565.atkcost) e1:SetCost(c50218565.atkcost)
e1:SetCondition(c50218565.atkcon) e1:SetCondition(c50218565.atkcon)
e1:SetTarget(c50218565.atktg) e1:SetTarget(c50218565.atktg)
...@@ -42,7 +43,8 @@ function c50218565.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +43,8 @@ function c50218565.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c50218565.atkfilter(c,e,tp) function c50218565.atkfilter(c,e,tp)
return c:IsControler(tp) and c:IsPosition(POS_FACEUP) and (not e or c:IsRelateToEffect(e)) return c:IsControler(tp) and c:IsPosition(POS_FACEUP) and c:GetAttack()>0
and (not e or c:IsRelateToEffect(e))
end end
function c50218565.atkcon(e,tp,eg,ep,ev,re,r,rp) function c50218565.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c50218565.atkfilter,1,nil,nil,1-tp) return eg:IsExists(c50218565.atkfilter,1,nil,nil,1-tp)
......
...@@ -50,10 +50,12 @@ function c50223100.lpcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,10 +50,12 @@ function c50223100.lpcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c50223100.lpop(e,tp,eg,ep,ev,re,r,rp) function c50223100.lpop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
local p=tc:GetOwner() while tc do
if tc and tc:IsFaceup() and tc:GetBaseAttack()>0 then if tc and tc:IsFaceup() and tc:GetBaseAttack()>0 then
Duel.Hint(HINT_CARD,0,50223100) Duel.Hint(HINT_CARD,0,50223100)
Duel.SetLP(p,Duel.GetLP(p)-tc:GetBaseAttack()) Duel.SetLP(tc:GetOwner(),Duel.GetLP(tc:GetOwner())-tc:GetBaseAttack())
end
tc=eg:GetNext()
end end
end end
function c50223100.tdcon(e,tp,eg,ep,ev,re,r,rp) function c50223100.tdcon(e,tp,eg,ep,ev,re,r,rp)
......
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