Commit b6e3e760 authored by POLYMER's avatar POLYMER

fix

parent 6ca54330
......@@ -63,7 +63,7 @@ function c40008627.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c40008627.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function c40008627.filter(c,e,tp,rk)
return c:IsRank(rk) and c:IsRace(RACE_MACHINE)
......
......@@ -62,26 +62,24 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
if not tc:IsRelateToEffect(e) then return end
local dg=Group.CreateGroup()
if tc:IsFaceup() then
local res=tc:GetAttack()>0
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(-400)
tc:RegisterEffect(e1)
if res and tc:GetAttack()<=0 then dg:AddCard(tc) end
if tc:GetAttack()<=0 then dg:AddCard(tc) end
else dg:AddCard(tc) end
local cg=Group.__add(Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_ONFIELD,tc,tc:GetSequence()),tc)
for ac in aux.Next(cg) do
if ac:IsType(TYPE_MONSTER) and ac:IsFaceup() then
local atk=ac:GetAttack()
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e2:SetValue(-800)
ac:RegisterEffect(e2)
if atk>0 and ac:GetAttack()<=0 then dg:AddCard(ac) end
if ac:GetAttack()<=0 then dg:AddCard(ac) end
else dg:AddCard(ac) end
end
if #dg>0 then Duel.Destroy(dg,REASON_EFFECT) end
......
......@@ -19,10 +19,10 @@ function c98920458.initial_effect(c)
end
function c98920458.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,46173680,0,TYPES_TOKEN_MONSTER,0,0,1,RACE_FIEND,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c98920458.tkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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