Commit 9f557cd5 authored by Nemo Ma's avatar Nemo Ma

fix

parent 4e8f633d
--飞球造物·吸血球 --飞球造物·吸血球
local m=c13254058 local m=13254058
local cm=_G["c"..m] local cm=_G["c"..m]
xpcall(function() require("expansions/script/tama") end,function() require("script/tama") end) xpcall(function() require("expansions/script/tama") end,function() require("script/tama") end)
function cm.initial_effect(c) function cm.initial_effect(c)
...@@ -107,6 +107,7 @@ end ...@@ -107,6 +107,7 @@ end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local el={{TAMA_ELEMENT_MANA,1},{TAMA_ELEMENT_LIFE,1}} local el={{TAMA_ELEMENT_MANA,1},{TAMA_ELEMENT_LIFE,1}}
local mg=tama.tamas_checkGroupElements(Duel.GetFieldGroup(tp,LOCATION_GRAVE,0),el) local mg=tama.tamas_checkGroupElements(Duel.GetFieldGroup(tp,LOCATION_GRAVE,0),el)
mg:RemoveCard(e:GetHandler())
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
if chk==0 then if chk==0 then
return mg:GetCount()>0 and mg:IsExists(tama.tamas_selectElementsForAbove,1,nil,mg,sg,el) return mg:GetCount()>0 and mg:IsExists(tama.tamas_selectElementsForAbove,1,nil,mg,sg,el)
......
...@@ -73,9 +73,9 @@ end ...@@ -73,9 +73,9 @@ 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)
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
if chkc then return chkc:IsOnField() and chkc:IsFaceup() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsFaceup() and chkc:IsControler(1-tp) end
if chk==0 then return ec and Duel.IsExistingTarget(nil,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return ec and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,nil,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function cm.desop(e,tp,eg,ep,ev,re,r,rp) function cm.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -76,7 +76,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsSetCard(0x353) return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsLevelAbove(5)
end end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp) function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and eg:IsExists(cm.cfilter,1,nil) return ep==tp and eg:IsExists(cm.cfilter,1,nil)
......
...@@ -67,7 +67,7 @@ function cm.efilter(e,re) ...@@ -67,7 +67,7 @@ function cm.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer() return e:GetHandlerPlayer()~=re:GetOwnerPlayer()
end end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then true end if chk==0 then return true end
local ec=e:GetHandler():GetEquipTarget() local ec=e:GetHandler():GetEquipTarget()
Duel.SetTargetCard(ec) Duel.SetTargetCard(ec)
local g=ec:GetColumnGroup():Filter(Card.IsControler,nil,1-tp) local g=ec:GetColumnGroup():Filter(Card.IsControler,nil,1-tp)
......
...@@ -30,7 +30,7 @@ function c40009635.filter2(c,e,tp) ...@@ -30,7 +30,7 @@ function c40009635.filter2(c,e,tp)
end end
function c40009635.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c40009635.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local b1=Duel.IsExistingMatchingCard(c40009635.filter1,tp,LOCATION_DECK,0,1,nil) local b1=Duel.IsExistingMatchingCard(c40009635.filter1,tp,LOCATION_DECK,0,1,nil)
local b2=Duel.IsExistingTarget(c40009635.filter2,tp,LOCATION_GRAVE,0,1,nil,e,tp) local b2=Duel.IsExistingTarget(c40009635.filter2,tp,LOCATION_DECK,0,1,nil,e,tp)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local op=0 local op=0
if b1 and b2 then if b1 and b2 then
......
...@@ -44,7 +44,7 @@ function cm.filter(c,tp,rp) ...@@ -44,7 +44,7 @@ function cm.filter(c,tp,rp)
end end
function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD) then if Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)>Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) then
Duel.SetChainLimit(function(e,ep,tp) Duel.SetChainLimit(function(e,ep,tp)
return tp==ep return tp==ep
end)end end)end
......
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
function c9910459.initial_effect(c) function c9910459.initial_effect(c)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK) e1:SetCategory(CATEGORY_TODECK+CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetCountLimit(1,9910459+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,9910459+EFFECT_COUNT_CODE_OATH)
......
...@@ -4,6 +4,7 @@ function c9910522.initial_effect(c) ...@@ -4,6 +4,7 @@ function c9910522.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,9910522+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,9910522+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c9910522.target) e1:SetTarget(c9910522.target)
......
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