Commit 9a691da7 authored by Tachibana's avatar Tachibana

ybb

parent 1c1cd5e5
......@@ -83,6 +83,7 @@ function c33200651.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c33200651.desop(e,tp,eg,ep,ev,re,r,rp)
local datk=e:GetHandler():GetAttack()
if e:GetHandler():IsOnField() and e:GetHandler():IsFaceup() then
local g=Duel.GetMatchingGroup(c33200651.desfilter,tp,0,LOCATION_MZONE,nil,datk)
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -49,10 +49,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
----------------------
function cm.xyzfilter(c)
return c:IsFaceup() and c.setname=="Alicization" and c:IsType(TYPE_XYZ)
return c:IsFaceup() and c:IsType(TYPE_XYZ)
end
function cm.matfilter(c)
return c:IsType(TYPE_MONSTER)
return c:IsType(TYPE_MONSTER) and c:IsCanOverlay()
end
function cm.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ov=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_GRAVE,0,nil)
......
......@@ -69,7 +69,6 @@ function c9310000.thop(e,tp,eg,ep,ev,re,r,rp)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EFFECT_CANNOT_ACTIVATE)
e3:SetCondition(c9310000.con)
e3:SetTargetRange(1,0)
e3:SetValue(c9310000.actlimit)
e3:SetReset(RESET_PHASE+PHASE_END)
......@@ -78,11 +77,8 @@ end
function c9310000.cfilter(c)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsSetCard(0x3f91) and not c:IsCode(9310000)
end
function c9310000.con(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c9310000.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil)
end
function c9310000.actlimit(e,re,rp)
return not re:GetHandler():IsSetCard(0x3f91)
return not re:GetHandler():IsSetCard(0x3f91) and not Duel.IsExistingMatchingCard(c9310000.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil)
end
function c9310000.tnval(e,c)
return e:GetHandler():IsDefensePos()
......
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