Commit cdf6f8d7 authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent a6e14c9c
......@@ -18,19 +18,10 @@ function c27541563.initial_effect(c)
e2:SetTarget(c27541563.distg)
e2:SetOperation(c27541563.disop)
c:RegisterEffect(e2)
local e0=e2:Clone()
e0:SetType(EFFECT_TYPE_QUICK_O)
e0:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e0:SetRange(LOCATION_SZONE)
c:RegisterEffect(e0)
--cannot disable
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_DISABLE)
local e3=e2:Clone()
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_ONFIELD,0)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetTarget(c27541563.distarget)
c:RegisterEffect(e3)
--inactivatable
local e4=Effect.CreateEffect(c)
......@@ -78,6 +69,3 @@ function c27541563.effectfilter(e,ct)
local te,tp,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
return p==tp and te:GetHandler():IsSetCard(0x103) and bit.band(loc,LOCATION_ONFIELD)~=0
end
function c27541563.distarget(e,c)
return c:IsSetCard(0x103)
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