Commit 37004aa5 authored by 聖園ミカ's avatar 聖園ミカ 🐟

str

parent 2e636631
No preview for this file type
...@@ -13,7 +13,7 @@ function s.initial_effect(c) ...@@ -13,7 +13,7 @@ function s.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CHANGE_DAMAGE) e2:SetCode(EFFECT_CHANGE_DAMAGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(1,0) e2:SetTargetRange(1,0)
e2:SetValue(s.damval2) e2:SetValue(s.damval2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -44,14 +44,16 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,14 +44,16 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
--
function s.damval2(e,re,val,r,rp,rc) function s.damval2(e,re,val,r,rp,rc)
local c=e:GetHandler() local tp=e:GetHandlerPlayer()
if bit.band(r,REASON_BATTLE)~=0 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 and Duel.GetFlagEffect(e:GetHandlerPlayer(),id)==0 then if bit.band(r,REASON_BATTLE)~=0 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0 and Duel.GetFlagEffect(tp,id)==0 then
Duel.RegisterFlagEffect(e:GetHandlerPlayer(),id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,0,RESET_PHASE+PHASE_END,1)
return 0 return 0
end end
return val return val
end end
--
function s.thcon(e,tp,eg,ep,ev,re,r,rp) function s.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsPreviousLocation(LOCATION_ONFIELD)
......
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