Commit dc6b6308 authored by Tachibana's avatar Tachibana

ndyd

parent 6190c8c9
...@@ -36,19 +36,20 @@ end ...@@ -36,19 +36,20 @@ end
function c9310014.recon(e,tp,eg,ep,ev,re,r,rp) function c9310014.recon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function c9310014.recfilter(c) function c9310014.filter1(c)
return c:IsFaceup() and c:IsSetCard(0xa82) return c:IsFaceup() and c:IsSetCard(0xa82)
end end
function c9310014.rectg(e,tp,eg,ep,ev,re,r,rp,chk) function c9310014.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c9310014.recfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end local rec=Duel.GetMatchingGroupCount(c9310014.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)*500
local g=Duel.GetMatchingGroup(c9310014.recfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) if chk==0 then return rec>0 end
local rec=#g*500 Duel.SetTargetPlayer(tp)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,1-tp,rec) Duel.SetTargetParam(rec)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,rec)
end end
function c9310014.recop(e,tp,eg,ep,ev,re,r,rp) function c9310014.recop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c9310014.recfilter,tp,LOCATION_MZONE,LOCATION_ONFIELD,nil) local rec=Duel.GetMatchingGroupCount(c9310014.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)*500
local rec=#g*500 local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
Duel.Recover(tp,rec,REASON_EFFECT) Duel.Recover(p,rec,REASON_EFFECT)
end end
function c9310014.tnval(e,c) function c9310014.tnval(e,c)
return e:GetHandler():IsDefensePos() return e:GetHandler():IsDefensePos()
......
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