Commit 4fc09154 authored by POLYMER's avatar POLYMER

fix

parent 0abfac43
......@@ -279,7 +279,7 @@ function s.PendOperation()
local ge0=Effect.CreateEffect(c)
ge0:SetType(EFFECT_TYPE_FIELD)
ge0:SetCode(EFFECT_SPSUMMON_COST)
ge0:SetTargetRange(LOCATION_HAND,0)
ge0:SetTargetRange(LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA,0)
ge0:SetLabelObject(spellg)
ge0:SetCost(s.costchk)
ge0:SetOperation(s.costop)
......
......@@ -71,18 +71,20 @@ function s.adjustop(e,tp,eg,ep,ev,re,r,rp)
local eff=effect:Clone()
if s.GetRange(effect)==LOCATION_MZONE and (effect:IsHasType(EFFECT_TYPE_QUICK_O) or effect:IsHasType(EFFECT_TYPE_TRIGGER_O) or effect:IsHasType(EFFECT_TYPE_TRIGGER_F) or effect:IsHasType(EFFECT_TYPE_IGNITION)) then
eff:SetValue(id)
esetrange(eff,LOCATION_HAND+LOCATION_MZONE)
esetrange(eff,LOCATION_HAND)
table.insert(table_effect,eff)
end
table.insert(table_effect,eff)
end
return
end
for tc in aux.Next(g) do
table_effect={}
tc:ReplaceEffect(id,0)
--tc:ReplaceEffect(id,0)
Duel.CreateToken(0,tc:GetOriginalCode())
for key,eff in ipairs(table_effect) do
cregister(tc,eff)
if #table_effect>0 then
for key,eff in ipairs(table_effect) do
cregister(tc,eff)
end
end
end
Card.RegisterEffect=cregister
......
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