Commit b4148a45 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 8e951752
Pipeline #2422 passed with stages
in 37 minutes and 25 seconds
No preview for this file type
--残存的怨灵 开膛手杰克
local m=m
local m=16160009
local cm=_G["c"..m]
function cm.initial_effect(c)
c:EnableReviveLimit()
......@@ -115,27 +115,23 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToBattle() then
if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLE_START)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e1:SetCondition(cm.descon)
e1:SetOperation(cm.desop)
e1:SetOperation(cm.desop1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1,true)
end
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
return bc
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
function cm.desop1(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetHandler():GetBattleTarget()
if bc:IsRelateToBattle() then
if bc then
Duel.Hint(HINT_CARD,1-tp,m)
Duel.Hint(HINT_CARD,tp,m)
Duel.SendtoGrave(bc,REASON_RULE+REASON_EFFECT)
end
end
......
......@@ -27,7 +27,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e11)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():GetLocation()~=LOCATION_ONFIELD
local loc=LOCATION_ONFIELD
return bit.band(loc,re:GetHandler():GetLocation())==0
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end
......@@ -48,7 +49,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT)
end
function cm.disop1(e,tp,eg,ep,ev,re,r,rp)
if re:GetHandler():GetLocation()~=LOCATION_ONFIELD
local loc=LOCATION_ONFIELD
if bit.band(loc,re:GetHandler():GetLocation())==0
then
Duel.NegateEffect(ev)
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