Commit e6f1d24c authored by mercury233's avatar mercury233 Committed by GitHub

fix 花札衛-松-

parent 5107c56f
...@@ -6,7 +6,7 @@ function c81752019.initial_effect(c) ...@@ -6,7 +6,7 @@ function c81752019.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCountLimit(1,81752019) e1:SetCountLimit(1,81752019)
e1:SetTarget(c81752019.drtg) e1:SetTarget(c81752019.drtg1)
e1:SetOperation(c81752019.drop1) e1:SetOperation(c81752019.drop1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--draw (destroy) --draw (destroy)
...@@ -15,12 +15,12 @@ function c81752019.initial_effect(c) ...@@ -15,12 +15,12 @@ function c81752019.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e2:SetCondition(c81752019.drcon) e2:SetCondition(c81752019.drcon2)
e2:SetTarget(c81752019.drtg) e2:SetTarget(c81752019.drtg2)
e2:SetOperation(c81752019.drop2) e2:SetOperation(c81752019.drop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c81752019.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c81752019.drtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1) Duel.SetTargetParam(1)
...@@ -36,11 +36,17 @@ function c81752019.drop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,11 +36,17 @@ function c81752019.drop1(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
end end
function c81752019.drcon(e,tp,eg,ep,ev,re,r,rp) function c81752019.drcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_BATTLE) return c:IsReason(REASON_BATTLE)
or (rp==1-tp and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp)) or (rp==1-tp and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp))
end end
function c81752019.drtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c81752019.drop2(e,tp,eg,ep,ev,re,r,rp) function c81752019.drop2(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
......
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