Commit 85307118 authored by nanahira's avatar nanahira

fix

parent c0f8e5f9
...@@ -202,9 +202,9 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -202,9 +202,9 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
local cat=e:GetCategory() local cat=e:GetCategory()
if (g:GetFirst():GetOriginalType() & TYPE_MONSTER)~=0 then if (g:GetFirst():GetOriginalType() & TYPE_MONSTER)~=0 then
e:SetCategory((cat | CATEGORY_SPECIAL_SUMMON)) e:SetCategory(cat | CATEGORY_SPECIAL_SUMMON)
else else
e:SetCategory((cat & ~CATEGORY_SPECIAL_SUMMON) e:SetCategory(cat & ~CATEGORY_SPECIAL_SUMMON)
end end
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -54,6 +54,7 @@ function cm.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,6 +54,7 @@ function cm.seqop(e,tp,eg,ep,ev,re,r,rp)
local nseq=math.log(s,2) local nseq=math.log(s,2)
Duel.MoveSequence(c,nseq) Duel.MoveSequence(c,nseq)
end end
end
end end
......
...@@ -33,7 +33,7 @@ function cm.battlecheck(c,tp) ...@@ -33,7 +33,7 @@ function cm.battlecheck(c,tp)
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if rp==tp or #eg~= then return false end if rp==tp or #eg~=1 then return false end
local tc=eg:GetFirst() local tc=eg:GetFirst()
if not Senya.check_set_3L(tc) or not tc:IsType(TYPE_MONSTER) or not tc:IsLocation(LOCATION_GRAVE) or not tc:IsAbleToRemove() or not cm.battlecheck(tc,tp) then return false end if not Senya.check_set_3L(tc) or not tc:IsType(TYPE_MONSTER) or not tc:IsLocation(LOCATION_GRAVE) or not tc:IsAbleToRemove() or not cm.battlecheck(tc,tp) then return false end
local mg=Duel.GetMatchingGroup(cm.mfilter,tp,LOCATION_DECK,0,nil) local mg=Duel.GetMatchingGroup(cm.mfilter,tp,LOCATION_DECK,0,nil)
......
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