Commit b7d532a8 authored by Nemo Ma's avatar Nemo Ma

fix

parent c08bef22
......@@ -45,9 +45,11 @@ function c10105580.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end
function c10105580.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10105580.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,nil) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10105580.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c10105580.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,nil)
local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c10105580.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10105580.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -46,9 +46,11 @@ function c10105581.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end
function c10105581.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10105581.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,nil) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10105581.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c10105580.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,nil)
local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c10105581.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10105581.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -43,9 +43,11 @@ function c10105582.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end
function c10105582.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10105582.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,nil) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10105582.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c10105582.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,nil)
local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c10105582.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10105582.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -42,9 +42,11 @@ function c10105583.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end
function c10105583.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10105583.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,nil) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10105583.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c10105583.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,nil)
local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c10105583.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10105583.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -55,9 +55,11 @@ function c10105584.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end
function c10105584.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10105584.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,nil) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c10105584.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c10105584.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,nil)
local c=e:GetHandler()
local g=Duel.SelectMatchingCard(tp,c10105584.cfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,2,2,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10105584.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -83,5 +83,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return e:GetLabelObject()==c and se:GetHandler():IsCode(e:GetOwner():GetCode())
return c:IsCode(e:GetLabelObject():GetCode()) and se:GetHandler():IsCode(e:GetOwner():GetCode())
end
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(1)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
......
......@@ -72,7 +72,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(COSMIC_BATTLESHIP_SHIELD)==0
return e:GetHandler():GetCounter(TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD)==0
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -41,8 +41,8 @@ function cm.efilter(e,re)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetHandler():GetEquipTarget()
if chk==0 then return ec and ec:IsCanRemoveCounter(tp,0x353,1,REASON_COST) end
ec:RemoveCounter(tp,0x353,1,REASON_COST)
if chk==0 then return ec and ec:IsCanRemoveCounter(tp,TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD,1,REASON_COST) end
ec:RemoveCounter(tp,TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD,1,REASON_COST)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
......
......@@ -41,7 +41,7 @@ function c72411220.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
function c72411220.sendfilter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and (c:GetAttack()<=e:GetHandler():GetAttack() or c:GetDefense()<=e:GetHandler():GetAttack()) and c:GetControler()==1-tp
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:GetControler()==1-tp and ((not c:IsType(TYPE_LINK) and (c:GetAttack()<=e:GetHandler():GetAttack() or c:GetDefense()<=e:GetHandler():GetAttack())) or (c:IsType(TYPE_LINK) and c:GetAttack()<=e:GetHandler():GetAttack()))
end
function c72411220.sendop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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