Commit dc6b6308 authored by Tachibana's avatar Tachibana

ndyd

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