Commit befede35 authored by mercury233's avatar mercury233

fix

parent 8530d84b
...@@ -34,9 +34,9 @@ end ...@@ -34,9 +34,9 @@ end
function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local rt=3 local rt=3
if not Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_HAND,1,nil) then rt=rt-1 end
if not Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) then rt=rt-1 end if not Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) then rt=rt-1 end
if not Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP) then rt=rt-1 end if not Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP) then rt=rt-1 end
if not Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_HAND,1,nil) then rt=rt-1 end
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
c:RemoveOverlayCard(tp,1,rt,REASON_COST) c:RemoveOverlayCard(tp,1,rt,REASON_COST)
local ct=Duel.GetOperatedGroup():GetCount() local ct=Duel.GetOperatedGroup():GetCount()
...@@ -44,8 +44,8 @@ function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,8 +44,8 @@ function c100413009.ctcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk) function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_HAND,1,nil) local b1=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_HAND,1,nil)
local b2=Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_MZONE,1,nil,TYPE_SPELL+TYPE_TRAP) local b2=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil)
local b3=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_SZONE,1,nil) local b3=Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,TYPE_SPELL+TYPE_TRAP)
if chk==0 then return b1 or b2 or b3 end if chk==0 then return b1 or b2 or b3 end
local ct=e:GetLabel() local ct=e:GetLabel()
local sel=0 local sel=0
...@@ -81,7 +81,7 @@ function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -81,7 +81,7 @@ function c100413009.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
b3=false b3=false
end end
ct=ct-1 ct=ct-1
until ct==0 or off<3 or not Duel.SelectYesNo(tp,aux.Stringid(100413009,3)) until ct==0 or off<3
e:SetLabel(sel) e:SetLabel(sel)
if bit.band(sel,1)~=0 then if bit.band(sel,1)~=0 then
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,1-tp,LOCATION_HAND)
......
...@@ -54,7 +54,7 @@ function c101010033.cfilter(c) ...@@ -54,7 +54,7 @@ function c101010033.cfilter(c)
return (c:IsFusionCode(101010013) or c:IsFusionSetCard(0x19) and c:IsType(TYPE_MONSTER)) and c:IsAbleToDeckOrExtraAsCost() return (c:IsFusionCode(101010013) or c:IsFusionSetCard(0x19) and c:IsType(TYPE_MONSTER)) and c:IsAbleToDeckOrExtraAsCost()
end end
function c101010033.condition(e,tp,eg,ep,ev,re,r,rp) function c101010033.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev) return rp==1-tp and re:IsActiveType(TYPE_MONSTER) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev)
end end
function c101010033.target(e,tp,eg,ep,ev,re,r,rp,chk) function c101010033.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -49,8 +49,8 @@ end ...@@ -49,8 +49,8 @@ end
function c101010040.immtg2(e,c) function c101010040.immtg2(e,c)
return c==e:GetHandler():GetBattleTarget() return c==e:GetHandler():GetBattleTarget()
end end
function c101010040.efilter2(e,te) function c101010040.efilter2(e,te,c)
return e:GetHandler()~=te:GetOwner() return c~=te:GetOwner()
end end
function c101010040.indcon(e,tp,eg,ep,ev,re,r,rp) function c101010040.indcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
......
...@@ -15,7 +15,7 @@ function c101010064.initial_effect(c) ...@@ -15,7 +15,7 @@ function c101010064.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(101010064,0)) e2:SetDescription(aux.Stringid(101010064,0))
e2:SetCategory(CATEGORY_COUNTER) e2:SetCategory(CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1)
...@@ -24,16 +24,16 @@ function c101010064.initial_effect(c) ...@@ -24,16 +24,16 @@ function c101010064.initial_effect(c)
e2:SetOperation(c101010064.activate) e2:SetOperation(c101010064.activate)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--recover --recover
local e4=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(101010064,1)) e3:SetDescription(aux.Stringid(101010064,1))
e4:SetCategory(CATEGORY_RECOVER) e3:SetCategory(CATEGORY_RECOVER)
e4:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e4:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE) e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e4:SetTarget(c101010064.rectg) e3:SetTarget(c101010064.rectg)
e4:SetOperation(c101010064.recop) e3:SetOperation(c101010064.recop)
c:RegisterEffect(e4) c:RegisterEffect(e3)
--damage --damage
local e4=e3:Clone() local e4=e3:Clone()
e4:SetDescription(aux.Stringid(101010064,2)) e4:SetDescription(aux.Stringid(101010064,2))
......
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