Commit 5d434542 authored by nanahira's avatar nanahira
parents bb989598 85307118
......@@ -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)
local cat=e:GetCategory()
if (g:GetFirst():GetOriginalType() & TYPE_MONSTER)~=0 then
e:SetCategory((cat | CATEGORY_SPECIAL_SUMMON))
e:SetCategory(cat | CATEGORY_SPECIAL_SUMMON)
else
e:SetCategory((cat & ~CATEGORY_SPECIAL_SUMMON)
e:SetCategory(cat & ~CATEGORY_SPECIAL_SUMMON)
end
end
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)
local nseq=math.log(s,2)
Duel.MoveSequence(c,nseq)
end
end
end
......
......@@ -33,7 +33,7 @@ function cm.battlecheck(c,tp)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
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()
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)
......
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