Commit 7077d631 authored by argon.sun's avatar argon.sun

fix

parent 315f3944
......@@ -11,7 +11,7 @@ function c17536995.initial_effect(c)
c:RegisterEffect(e1)
end
function c17536995.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()~=tp
return Duel.GetAttacker():IsControler(1-tp)
end
function c17536995.filter(c,e,tp)
return c:IsSetCard(0x76) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -36,5 +36,5 @@ function c19870120.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsLocation(LOCATION_EXTRA)
end
function c19870120.target(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)~=0
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end
......@@ -15,7 +15,7 @@ function c59170782.initial_effect(c)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(59170782,0))
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c59170782.tgcon2)
......@@ -59,8 +59,12 @@ function c59170782.tgop1(e,tp,eg,ep,ev,re,r,rp)
end
function c59170782.tgcon2(e,tp,eg,ep,ev,re,r,rp)
if tp==Duel.GetTurnPlayer() then return false end
local ag=eg:GetFirst():GetAttackableTarget()
return ag:IsContains(e:GetHandler())
local at=Duel.GetAttackTarget()
if at and at:IsFaceup() and at:IsSetCard(0x74) then
local ag=eg:GetFirst():GetAttackableTarget()
return ag:IsContains(e:GetHandler())
end
return false
end
function c59170782.tgop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -19,10 +19,10 @@ function c6691855.filter(c)
return c:IsFaceup()
end
function c6691855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c6691855.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c6691855.filter,tp,LOCATION_MZONE,0,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c6691855.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,c6691855.filter,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectTarget(tp,c6691855.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -23,7 +23,7 @@ function c91133740.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c91133740.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
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