Commit e8449ee0 authored by POLYMER's avatar POLYMER

fix

parent 506461b1
...@@ -7,16 +7,22 @@ function c22020480.initial_effect(c) ...@@ -7,16 +7,22 @@ function c22020480.initial_effect(c)
e1:SetCategory(CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DAMAGE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22020480+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,22020480+EFFECT_COUNT_CODE_OATH)
e1:SetOperation(c22020480.damop) e1:SetCost(c22020480.cost)
e1:SetOperation(c22020480.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22020480.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local lp=Duel.GetLP(tp)
if chk==0 then return Duel.CheckLPCost(tp,lp-100) end
Duel.PayLPCost(tp,lp-100)
end
function c22020480.desfilter(c) function c22020480.desfilter(c)
return c:IsType(TYPE_MONSTER) return c:IsType(TYPE_MONSTER)
end end
function c22020480.dfilter(c) function c22020480.dfilter(c)
return c:IsFaceup() and c:IsCode(22020410) return c:IsFaceup() and c:IsCode(22020410)
end end
function c22020480.lpop(e,tp,eg,ep,ev,re,r,rp) function c22020480.op(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(c22020480.desfilter,tp,0,LOCATION_MZONE,nil) local dg=Duel.GetMatchingGroup(c22020480.desfilter,tp,0,LOCATION_MZONE,nil)
local dg1=Duel.GetMatchingGroup(c22020480.dfilter,tp,LOCATION_ONFIELD,0,nil) local dg1=Duel.GetMatchingGroup(c22020480.dfilter,tp,LOCATION_ONFIELD,0,nil)
Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2)) Duel.SetLP(1-tp,math.ceil(Duel.GetLP(1-tp)/2))
......
...@@ -39,7 +39,7 @@ function c88880043.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c88880043.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function c88880043.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c88880043.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,c) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,3,c) end
Duel.DiscardHand(tp,Card.IsDiscardable,3,3,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,3,3,REASON_COST+REASON_DISCARD)
end end
function c88880043.ntrfilter(c) function c88880043.ntrfilter(c)
......
...@@ -113,11 +113,11 @@ function c9910036.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -113,11 +113,11 @@ function c9910036.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c9910036.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) local g=Duel.GetMatchingGroup(c9910036.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_MZONE)
end end
if bit.band(sel,3)~=0 then if bit.band(sel,4)~=0 then
local g=Duel.GetMatchingGroup(c9910036.filter3,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) local g=Duel.GetMatchingGroup(c9910036.filter3,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_SZONE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_SZONE)
end end
if bit.band(sel,4)~=0 then if bit.band(sel,8)~=0 then
local g=Duel.GetMatchingGroup(c9910036.filter4,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) local g=Duel.GetMatchingGroup(c9910036.filter4,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_SZONE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,LOCATION_SZONE)
end end
......
...@@ -54,7 +54,8 @@ function c9910235.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,8 @@ function c9910235.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,zone,zone,aux.ExceptThisCard(e)) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,zone,zone,aux.ExceptThisCard(e))
if Duel.GetCurrentChain()>2 and #g>=link and Duel.SelectYesNo(tp,aux.Stringid(9910235,0)) then if e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetCurrentChain()>2 and #g>=link
and Duel.SelectYesNo(tp,aux.Stringid(9910235,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g:Select(tp,link,link,nil) local sg=g:Select(tp,link,link,nil)
Duel.HintSelection(sg) Duel.HintSelection(sg)
......
...@@ -47,7 +47,7 @@ function c9910236.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c9910236.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(1) e3:SetValue(1)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
if Duel.GetCurrentChain()>2 then if e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetCurrentChain()>2 then
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_IMMUNE_EFFECT) e4:SetCode(EFFECT_IMMUNE_EFFECT)
......
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