Commit 66b9e570 authored by a597449807's avatar a597449807 Committed by GitHub

fix 転生炎獣レイジング・フェニックス (#2177)

修复转生炎兽 烈火凤凰墓地苏生时能够以被破坏的对方怪兽为对象上升攻击力的问题
parent 4d86d051
...@@ -71,13 +71,13 @@ function s.cfilter(c,tp) ...@@ -71,13 +71,13 @@ function s.cfilter(c,tp)
and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
end end
function s.tgfilter(c,e,tp) function s.tgfilter(c,e,tp)
return c:IsCanBeEffectTarget(e) return c:IsCanBeEffectTarget(e) and c:IsPreviousControler(tp)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler()) return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and s.filter(chkc,e,tp) end if chkc then return eg:IsContains(chkc) and s.tgfilter(chkc,e,tp) end
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return eg:IsExists(s.tgfilter,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return eg:IsExists(s.tgfilter,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end and c:IsCanBeSpecialSummoned(e,0,tp,false,false) 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