Commit cd442171 authored by wyykak's avatar wyykak

fix c74561002.lua

parent 09ea2177
...@@ -86,7 +86,11 @@ function cHeif.tgfilter(c,tp) ...@@ -86,7 +86,11 @@ function cHeif.tgfilter(c,tp)
return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(tp) return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(tp)
end end
function cHeif.descon(e,tp,eg,ep,ev,re,r,rp) function cHeif.descon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and eg:IsExists(cHeif.tgfilter,1,nil,tp) if re then
return re:GetHandler():IsControler(1-tp) and eg:IsExists(cHeif.tgfilter,1,nil,tp)
else
return Duel.GetAttacker():IsControler(1-tp) and eg:IsExists(cHeif.tgfilter,1,nil,tp)
end
end end
function cHeif.destg(e,tp,eg,ep,ev,re,r,rp,chk) function cHeif.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and not e:GetHandler():IsStatus(STATUS_CHAINING) end if chk==0 then return Duel.GetMZoneCount(tp)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and not e:GetHandler():IsStatus(STATUS_CHAINING) 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