Commit 48e6a5b2 authored by salix5's avatar salix5

update 暗黒界

parent 4ce3de67
......@@ -47,8 +47,11 @@ function c34230233.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
if rp==tp then e:SetCategory(CATEGORY_DESTROY)
else e:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON) end
if rp==1-tp and tp==e:GetLabel() then
e:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON)
else
e:SetCategory(CATEGORY_DESTROY)
end
end
function c34230233.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -18,7 +18,7 @@ function c60228941.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and c60228941.filter2(chkc,e,tp) end
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
if 1-tp==rp and tp==e:GetLabel() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if rp==1-tp and tp==e:GetLabel() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c60228941.filter2,tp,0,LOCATION_GRAVE,1,nil,e,tp)
and Duel.SelectYesNo(tp,aux.Stringid(60228941,1)) then
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
......
......@@ -19,17 +19,15 @@ end
function c79126789.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
if tp==rp or tp~=e:GetLabel() then
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
else
if rp==1-tp and tp==e:GetLabel() then
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
Duel.SetTargetParam(2)
else
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
Duel.SetTargetParam(1)
end
end
function c79126789.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if Duel.Draw(p,d,REASON_EFFECT)~=0 and tp~=rp and tp==e:GetLabel() then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end
Duel.Draw(p,d,REASON_EFFECT)
end
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