Commit a0998e51 authored by wyykak's avatar wyykak

fix mh

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 4083c1a5
Pipeline #39524 passed with stage
in 8 seconds
...@@ -39,7 +39,7 @@ end ...@@ -39,7 +39,7 @@ end
function c21091.recop(e,tp,eg,ep,ev,re,r,rp) function c21091.recop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetLabel(0) e1:SetLabel(0,e:GetLabel())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
...@@ -50,10 +50,10 @@ function c21091.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,10 +50,10 @@ function c21091.recop(e,tp,eg,ep,ev,re,r,rp)
end end
function c21091.damop(e,tp,eg,ep,ev,re,r,rp) function c21091.damop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=e:GetLabel() local ct,dam=e:GetLabel()
if(ct<3) then if(ct<3) then
ct=ct+1 ct=ct+1
e:SetLabel(ct) e:SetLabel(ct,dam)
c:SetTurnCounter(ct) c:SetTurnCounter(ct)
Duel.Damage(tp,dam,REASON_EFFECT,true) Duel.Damage(tp,dam,REASON_EFFECT,true)
Duel.Damage(1-tp,dam,REASON_EFFECT,true) Duel.Damage(1-tp,dam,REASON_EFFECT,true)
......
...@@ -61,7 +61,7 @@ end ...@@ -61,7 +61,7 @@ end
function c21123.thop(e, tp, eg, ep, ev, re, r, rp) function c21123.thop(e, tp, eg, ep, ev, re, r, rp)
Duel.Hint(HINT_CARD, 0, 21123) Duel.Hint(HINT_CARD, 0, 21123)
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_ATOHAND)
local g = Duel.SelectMatchingCard(tp, thfilter, tp, LOCATION_DECK, 0, 1, 1, nil) local g = Duel.SelectMatchingCard(tp, c21123.thfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
if #g > 0 then if #g > 0 then
Duel.SendtoHand(g, nil, REASON_EFFECT) Duel.SendtoHand(g, nil, REASON_EFFECT)
Duel.ConfirmCards(1 - tp, g) Duel.ConfirmCards(1 - tp, g)
......
...@@ -11,9 +11,9 @@ function c21125.initial_effect(c) ...@@ -11,9 +11,9 @@ function c21125.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c21125.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c21125.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c21125.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c21125.cfilter,1,REASON_COST,true,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c21125.cfilter,1,1,nil) local g=Duel.SelectReleaseGroupEx(tp,c21125.cfilter,1,1,REASON_COST,true,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21125.cfilter(c) function c21125.cfilter(c)
......
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