Commit dcfbb2a6 authored by POLYMER's avatar POLYMER

fix

parent dad31487
......@@ -64,9 +64,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetLabelObject()
if not c or not e:GetHandler():IsRelateToEffect(e) then return end
if not c then return end
local r=e:GetHandler():IsRelateToEffect(e)
local operation=c:GetOperation()
if operation then operation(e,tp,eg,ep,ev,re,r,rp) end
if r and not e:GetHandler():IsLocation(LOCATION_GRAVE) and not e:GetHandler():IsLocation(LOCATION_REMOVED) then
Duel.BreakEffect()
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
\ No newline at end of file
......@@ -64,9 +64,12 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetLabelObject()
if not c or not e:GetHandler():IsRelateToEffect(e) then return end
if not c then return end
local r=e:GetHandler():IsRelateToEffect(e)
local operation=c:GetOperation()
if operation then operation(e,tp,eg,ep,ev,re,r,rp) end
if r and not e:GetHandler():IsLocation(LOCATION_GRAVE) and not e:GetHandler():IsLocation(LOCATION_REMOVED) then
Duel.BreakEffect()
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
end
end
\ No newline at end of file
......@@ -50,11 +50,13 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.filter,e:GetHandlerPlayer(),LOCATION_DECK,0,nil)
local tg=Duel.GetMatchingGroup(cm.lkfil,e:GetHandlerPlayer(),LOCATION_HAND,0,nil)
g:Merge(tg)
if chk==0 then return g:GetClassCount(Card.GetCode)>1 and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil)
and Duel.IsExistingMatchingCard(cm.lkfil,tp,LOCATION_HAND,0,1,nil) end
if e:GetActivateLocation()~=LOCATION_HAND then
e:SetLabel(1)
end
if chk==0 then return e:GetLabel()~=1
or (g:GetClassCount(Card.GetCode)>1 and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil)
and Duel.IsExistingMatchingCard(cm.lkfil,tp,LOCATION_HAND,0,1,nil)) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,100)
end
......
......@@ -99,7 +99,7 @@ function c71403021.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
return (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c71403021.filter2a,tp,LOCATION_HAND,0,1,nil)
or Duel.IsExistingMatchingCard(c71403021.filter2b,tp,LOCATION_ONFIELD,0,1,nil,tp))
and Duel.IsExistingMatchingCard(c71403021.filter2c,tp,LOCATION_DECK,0,1,nil,e,tp))
and Duel.IsExistingMatchingCard(c71403021.filter2c,tp,LOCATION_DECK,0,1,nil,e,tp)
end
end
function c71403021.filter2second(c)
......
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