Commit a64d9722 authored by wind2009's avatar wind2009

Fix Mercurium the Living Quicksilver

parent 9ad7c9a8
Pipeline #42677 passed with stages
in 4 minutes and 9 seconds
No preview for this file type
......@@ -22,19 +22,20 @@ function s.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1)
e2:SetCondition(s.limcon)
e2:SetValue(s.limval)
c:RegisterEffect(e2)
--remove material
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1))
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetTarget(s.rmtg)
e1:SetOperation(s.rmop)
c:RegisterEffect(e1)
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetTarget(s.rmtg)
e3:SetOperation(s.rmop)
c:RegisterEffect(e3)
end
function s.mtcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
......@@ -60,6 +61,9 @@ end
function s.cfilter(c,ec)
return c:IsAttribute(ec:GetAttribute())
end
function s.limcon(e)
return e:GetHandler():GetOverlayCount()>0
end
function s.limval(e,re,rp)
local rc=re:GetHandler()
return rc:IsLocation(LOCATION_GRAVE) and re:IsActiveType(TYPE_MONSTER)
......
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