Commit 3a408060 authored by wind2009's avatar wind2009

Merge branch 'master' into 'master'

Fix マルチャミー・プルリア

See merge request !19
parents 2faba00c c9bec410
Pipeline #26726 passed with stages
in 53 seconds
...@@ -12,14 +12,14 @@ function s.initial_effect(c) ...@@ -12,14 +12,14 @@ function s.initial_effect(c)
e1:SetCost(s.drcost) e1:SetCost(s.drcost)
e1:SetOperation(s.drop) e1:SetOperation(s.drop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter)
end end
function s.drcon(e,tp,eg,ep,ev,re,r,rp) function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)==0 and Duel.GetCustomActivityCount(id,tp,ACTIVITY_CHAIN)<2
end end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter)
local e3=Effect.CreateEffect(e:GetHandler()) local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
...@@ -31,11 +31,11 @@ function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,11 +31,11 @@ function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end end
function s.chainfilter(re,tp,cid) function s.chainfilter(re,tp,cid)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x2b4) return not (re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x2b4))
end end
function s.actcon(e) function s.actcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.GetCustomActivityCount(id,tp,ACTIVITY_CHAIN)~=0 return Duel.GetCustomActivityCount(id,tp,ACTIVITY_CHAIN)>1
end end
function s.aclimit(e,re,tp) function s.aclimit(e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x2b4) return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x2b4)
......
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