Commit ddd7e72e authored by Tachibana's avatar Tachibana 🐟

reclean

parent 3d572da1
Pipeline #26014 passed with stages
in 17 minutes and 49 seconds
No preview for this file type
--烟雾弹
function c24400030.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetTarget(c24400030.cndtg)
e2:SetValue(c24400030.ccval)
c:RegisterEffect(e2)
end
c24400030.named_with_ZhanShuRenXing=true
function c24400030.cndtg(e,c)
return c.named_with_ZhanShuRenXing or c.named_with_TeZhanRenXing
end
function c24400030.ccval(e,c)
if c:IsDefensePos() and Duel.GetAttacker()==c then
return c:IsDefenseAbove(1900)
else
return c:IsAttackAbove(1900)
end
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