Commit bef25433 authored by Nemo Ma's avatar Nemo Ma

fix

parent b33a50ee
--融眷之咒眼
local m=11451545
local cm=_G["c"..m]
local cm,m=GetID()
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......@@ -75,8 +74,8 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rp==tp and ((re:IsActiveType(TYPE_MONSTER) and c:GetEquipTarget()==rc) or (re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSetCard(0x129) and rc~=c))
end
function cm.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0x129)
function cm.matfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x129) and (c:IsControler(tp) or not c:IsImmuneToEffect(e))
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
--local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......@@ -86,7 +85,7 @@ end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local tc=g:GetFirst()
......
......@@ -8,7 +8,8 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCountLimit(1,m)
......
......@@ -89,8 +89,12 @@ function c26692740.adjustop(e,tp,eg,ep,ev,re,r,rp)
end)
eff:SetOperation(
function(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,26692740)
op(e,tp,eg,ep,ev,re,r,1-tp)
if Duel.IsPlayerAffectedByEffect(tp,26692740) then
Duel.Hint(HINT_CARD,0,26692740)
op(e,tp,eg,ep,ev,re,r,1-tp)
else
op(e,tp,eg,ep,ev,re,r,rp)
end
end)
table.insert(table_effect,eff)
eff2:SetValue(26692741)
......
......@@ -249,6 +249,7 @@ function cm.cyop(e,tp,eg,ep,ev,re,r,rp)
local op=te:GetOperation()
if op then
local re=Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT)
if te:GetCode()==EVENT_CHAINING then ev=ev-1 end
op(e,tp,eg,ep,ev,re,r,rp)
end
local code=tc
......
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