Commit 318f7772 authored by 聖園ミカ's avatar 聖園ミカ 🐟

vme50

parent cdc442f8
......@@ -53,8 +53,8 @@ function cm.cfilter1(c)
return c:IsSetCard(0x3310)
end
function cm.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,cm.cfilter1,1,nil) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.cfilter1,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,cm.cfilter1,1,nil) end
local g=Duel.SelectReleaseGroup(tp,cm.cfilter1,1,1,nil)
Duel.Release(g,REASON_COST)
end
function cm.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -22,16 +22,16 @@ function cm.exfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xf36) and c:IsFaceup() and c:IsSummonLocation(LOCATION_EXTRA)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return (re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev))
return (re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and Duel.IsChainNegatable(ev))
or
(Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) and ((re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL)) or re:IsActiveType(TYPE_MONSTER)) and Duel.IsChainNegatable(ev))
(Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) and ((re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)) or re:IsActiveType(TYPE_MONSTER)) and Duel.IsChainNegatable(ev))
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if e:GetHandler():IsStatus(STATUS_ACT_FROM_HAND) then
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end
if ((re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL)) or re:IsActiveType(TYPE_MONSTER)) then
if ((re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)) or re:IsActiveType(TYPE_MONSTER)) then
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end
end
......
......@@ -24,6 +24,10 @@ function Suyu_bh.changecode(tc)
e1:SetValue(sidecode)
e1:SetReset(RESET_EVENT+0x7e0000)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_ADD_SETCODE)
e2:SetValue(0xa2c2)
tc:RegisterEffect(e2)
tc:RegisterFlagEffect(16100000,RESET_EVENT+0x7e0000,0,0)
tc:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
end
......
......@@ -122,8 +122,8 @@ function c47530030.cfilter(c,g)
end
function c47530030.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,tp,c47530030.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c47530030.cfilter,1,1,nil,lg)
if chk==0 then return Duel.CheckReleaseGroup(tp,c47530030.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c47530030.cfilter,1,1,nil,lg)
Duel.Release(g,REASON_COST)
end
function c47530030.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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