Commit 92564431 authored by salix5's avatar salix5

fix

parent 5c0cc3b1
...@@ -9,6 +9,7 @@ function c27796375.initial_effect(c) ...@@ -9,6 +9,7 @@ function c27796375.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,27796375) e1:SetCountLimit(1,27796375)
e1:SetCondition(c27796375.thcon) e1:SetCondition(c27796375.thcon)
e1:SetCost(c27796375.cost)
e1:SetTarget(c27796375.thtg) e1:SetTarget(c27796375.thtg)
e1:SetOperation(c27796375.thop) e1:SetOperation(c27796375.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -20,10 +21,15 @@ function c27796375.initial_effect(c) ...@@ -20,10 +21,15 @@ function c27796375.initial_effect(c)
e2:SetCode(EVENT_REMOVE) e2:SetCode(EVENT_REMOVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,27796375) e2:SetCountLimit(1,27796375)
e2:SetCost(c27796375.cost)
e2:SetTarget(c27796375.tgtg) e2:SetTarget(c27796375.tgtg)
e2:SetOperation(c27796375.tgop) e2:SetOperation(c27796375.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c27796375.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c27796375.thcon(e,tp,eg,ep,ev,re,r,rp) function c27796375.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0 return bit.band(r,REASON_EFFECT)~=0
end end
......
...@@ -10,6 +10,7 @@ function c39030163.initial_effect(c) ...@@ -10,6 +10,7 @@ function c39030163.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCost(c39030163.mtcost)
e1:SetTarget(c39030163.mttg) e1:SetTarget(c39030163.mttg)
e1:SetOperation(c39030163.mtop) e1:SetOperation(c39030163.mtop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -29,6 +30,10 @@ end ...@@ -29,6 +30,10 @@ end
function c39030163.ovfilter(c) function c39030163.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ) and not c:IsCode(39030163) return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ) and not c:IsCode(39030163)
end end
function c39030163.mtcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39030163.mttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=e:GetHandler():GetEquipGroup() local g=e:GetHandler():GetEquipGroup()
if chkc then return g:IsContains(chkc) and chkc:IsCanBeEffectTarget(e) end if chkc then return g:IsContains(chkc) and chkc:IsCanBeEffectTarget(e) end
...@@ -51,6 +56,7 @@ end ...@@ -51,6 +56,7 @@ end
function c39030163.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c39030163.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c39030163.desfilter(c) function c39030163.desfilter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
......
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