Commit e28035a6 authored by Nemo Ma's avatar Nemo Ma

ff

parent c306b34f
......@@ -37,7 +37,7 @@ function s.xyzcheck(g)
return g:GetClassCount(Card.GetCode)==3
end
function s.ovfilter(c)
return c:IsFaceup() and c:IsMonster(TYPE_XYZ) and c:IsSetCard(0x442) and not c:IsCode(id)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x442) and not c:IsCode(id)
end
function s.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,id)==0 end
......
......@@ -36,7 +36,7 @@ function c40009226.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (Duel.IsExistingMatchingCard(c40009226.cfilter1,tp,LOCATION_HAND,0,1,nil) or Duel.IsExistingMatchingCard(c40009226.cfilter2,tp,LOCATION_HAND,0,1,nil))
and (Duel.IsExistingMatchingCard(c40009226.cfilter1,tp,LOCATION_HAND,0,1,nil) or Duel.IsExistingMatchingCard(c40009226.cfilter2,tp,LOCATION_HAND,0,1,nil,tp))
end
function c40009226.spop(e,tp,eg,ep,ev,re,r,rp,c)
local b1=Duel.IsExistingMatchingCard(c40009226.cfilter1,tp,LOCATION_HAND,0,1,nil)
......
......@@ -64,11 +64,12 @@ function c67200300.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c67200300.filter(c,tp)
return c:IsFaceup() and c:IsControlerCanBeChanged()
return c:IsFaceup() and c:IsControlerCanBeChanged(true)
end
function c67200300.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c67200300.filter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c67200300.filter,tp,0,LOCATION_MZONE,1,nil,tp) end
if chk==0 then return Duel.IsExistingTarget(c67200300.filter,tp,0,LOCATION_MZONE,1,nil,tp)
and Duel.GetMZoneCount(tp,e:GetHandler(),tp,LOCATION_REASON_CONTROL)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,c67200300.filter,tp,0,LOCATION_MZONE,1,1,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
......
......@@ -7,7 +7,7 @@ function c9910551.initial_effect(c)
Txjp.AddTgFlag(c)
--to hand
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_REMOVE)
e2:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND+CATEGORY_REMOVE+CATEGORY_GRAVE_ACTION)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND)
e2:SetCost(c9910551.thcost)
......
......@@ -7,7 +7,7 @@ function c9910553.initial_effect(c)
Txjp.AddTgFlag(c)
--disable
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_REMOVE+CATEGORY_TODECK)
e2:SetCategory(CATEGORY_DISABLE+CATEGORY_REMOVE+CATEGORY_TODECK+CATEGORY_GRAVE_ACTION)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e2:SetCode(EVENT_FREE_CHAIN)
......
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