Commit 5aa17a54 authored by wind2009's avatar wind2009

Fix Tricorn the Cacophonous Concept

1效果在怪兽从场上以外破坏也能触发;2效果只要从场上离开就能触发;多属性/种族怪兽时只需要与其中一个匹配就能选为回收对象
parent df157852
Pipeline #25132 passed with stages
in 1 minute
...@@ -35,7 +35,7 @@ function s.initial_effect(c) ...@@ -35,7 +35,7 @@ function s.initial_effect(c)
end end
end end
function s.spcfilter(c,tp) function s.spcfilter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousControler(tp)
end end
function s.regcon(e,tp,eg,ep,ev,re,r,rp) function s.regcon(e,tp,eg,ep,ev,re,r,rp)
local v=0 local v=0
...@@ -64,11 +64,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,11 +64,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.thcon(e,tp,eg,ep,ev,re,r,rp) function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function s.cfilter(c,race,att) function s.cfilter(c,race,att)
return c:GetRace()==race and c:GetAttribute()==att return c:IsFaceup() and bit.band(c:GetRace(),race)~=0 and bit.band(c:GetAttribute(),att)~=0
and c:IsFaceup()
end end
function s.thfilter(c,tp) function s.thfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
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