Commit e39c4e89 authored by Tachibana's avatar Tachibana

ybb

parent ef319aa1
...@@ -49,13 +49,15 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,13 +49,15 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
e2:SetDescription(aux.Stringid(m,1)) e2:SetDescription(aux.Stringid(m,1))
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetValue(cm.op1val) e2:SetValue(cm.op1val)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
e2:SetOwnerPlayer(tp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.op1val(e,re) function cm.op1val(e,re)
return re:GetHandler():GetControler()~=e:GetHandler():GetControler() and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
end end
--e2 --e2
function cm.op2(e,tp,eg,ep,ev,re,r,rp) function cm.op2(e,tp,eg,ep,ev,re,r,rp)
......
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