Commit 2f701ce3 authored by TanakaKotoha's avatar TanakaKotoha

fnmdp

parent a994af61
No preview for this file type
......@@ -58,7 +58,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
return rp==tp and re:IsActiveType(TYPE_TRAP) and rc:IsStatus(STATUS_LEAVE_CONFIRMED) and rc.Senya_desc_with_nanahira and rc:IsCanTurnSet() and rc:IsRelateToEffect(re) and e:GetHandler():GetFlagEffect(m)==0
return rp==tp and re:IsActiveType(TYPE_TRAP) and rc:IsStatus(STATUS_LEAVE_CONFIRMED) and rc.Senya_desc_with_nanahira and rc:IsCanTurnSet() and rc:IsRelateToEffect(re) and e:GetHandler():GetFlagEffect(m)==0 and not rc:IsType(TYPE_CONTINUOUS)
end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
if not Duel.SelectYesNo(tp,m*16+1) then return end
......
......@@ -47,7 +47,7 @@ function cm.cnegcon(e,tp,eg,ep,ev,re,r,rp)
local te=Duel.IsPlayerAffectedByEffect(tp,m)
if not te or te:GetHandler()~=e:GetHandler() then return false end
local rc=re:GetHandler()
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and rc.Senya_desc_with_nanahira and rc:IsRelateToEffect(re)
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and rc.Senya_desc_with_nanahira and rc:IsRelateToEffect(re) and not rc:IsType(TYPE_CONTINUOUS)
end
function cm.cnegop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,e:GetHandler():GetOriginalCode())
......@@ -57,7 +57,7 @@ function cm.sfilter(c,tp)
return c:GetSummonPlayer()==1-tp
end
function cm.ssfilter(c,e,tp)
return c:IsType(TYPE_TRAP) and c.Senya_desc_with_nanahira and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetOriginalCode(),0,0x21,7,2850,2100,RACE_FAIRY,ATTRIBUTE_LIGHT)
return c:IsType(TYPE_TRAP) and c.Senya_desc_with_nanahira and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetOriginalCode(),0,0x21,7,2850,2100,RACE_FAIRY,ATTRIBUTE_LIGHT) and not c:IsType(TYPE_CONTINUOUS)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 and e:GetHandler():GetOverlayGroup():IsExists(cm.ssfilter,1,nil,e,tp) and e:GetHandler():IsType(TYPE_XYZ) 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