Commit 1f2b3857 authored by Tachibana's avatar Tachibana

eme

parent 20033d78
......@@ -98,7 +98,11 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
if rg then
g:Merge(rg)
end
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_ONFIELD~=0
if re:GetHandler():IsControler(tp) then
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_SZONE~=0
else
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==4-seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,4-seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_SZONE~=0
end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
......
......@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_BE_MATERIAL)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e1:SetCondition(cm.spcon)
......
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