Commit 1475352b authored by zengsxing's avatar zengsxing Committed by GitHub

fix ライトロード・アテナ ミネルバ (#2750)

光道雅典娜 密涅瓦的“②:自己场上的「光道」怪兽不能用效果除外。”是影响怪兽的效果,不能对不受怪兽效果影响的怪兽适用
parent 375b40bc
......@@ -25,6 +25,13 @@ function s.initial_effect(c)
e2:SetTargetRange(1,1)
e2:SetTarget(s.efilter)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(id)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(s.eftg)
c:RegisterEffect(e3)
--remove and tograve
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_DECKDES)
......@@ -58,7 +65,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.efilter(e,c,rp,r,re)
return r&REASON_EFFECT~=0 and c:IsControler(e:GetHandlerPlayer()) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x38) and c:IsFaceup()
return c:IsHasEffect(id) and r&REASON_EFFECT>0
end
function s.eftg(e,c)
return c:IsSetCard(0x38) and c:IsFaceup()
end
function s.refilter(c)
return c:IsSetCard(0x38) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
......
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