Commit 689116cd authored by POLYMER's avatar POLYMER

fix

parent df9a1345
...@@ -113,12 +113,11 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,12 +113,11 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
Duel.SetLP(tp,lp-2000) Duel.SetLP(tp,lp-2000)
local g=e:GetLabelObject():GetLabelObject()
if Duel.GetLP(tp)<lp and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if Duel.GetLP(tp)<lp and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.SelectYesNo(tp,aux.Stringid(id,2)) then #g>0 and g:IsExists(s.spfilter2,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
local g=e:GetLabelObject():GetLabelObject() local sg=g:Filter(s.spfilter2,nil,e,tp)
if g and g:IsExists(s.spfilter2,1,nil,e,tp) then local tc=sg:Select(tp,1,1,nil)
local tc=g:Select(tp,1,1,nil)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end end
end end
\ No newline at end of file
...@@ -77,7 +77,7 @@ function cm.initial_effect(c) ...@@ -77,7 +77,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.tttcon(e,tp,eg,ep,ev,re,r,rp) function cm.tttcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,m) return Duel.IsPlayerAffectedByEffect(e:GetHandlerPlayer(),m)
end end
function cm.indtg(e,c) function cm.indtg(e,c)
local tc=e:GetHandler() local tc=e:GetHandler()
......
...@@ -69,19 +69,23 @@ function s.actcon(e) ...@@ -69,19 +69,23 @@ function s.actcon(e)
return e:GetHandler():GetColumnGroupCount()>=2 return e:GetHandler():GetColumnGroupCount()>=2
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetColumnGroup():IsContains(re:GetHandler()) or e:GetHandler()==re:GetHandler() local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
seq=aux.MZoneSequence(seq)
local cseq=aux.SZoneSequence(e:GetHandler():GetSequence())
if not bit.band(loc,LOCATION_ONFIELD)==loc then return false end
if e:GetHandlerPlayer()==re:GetHandlerPlayer() then return seq==cseq end
return seq==4-cseq
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,aux.Stringid(id,0)) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,e:GetHandler():GetBaseAttack())
local dmg=e:GetHandler():GetBaseAttack()
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(dmg)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,dmg)
end end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local c=e:GetHandler()
Duel.Damage(p,d,REASON_EFFECT) if c:IsFaceup() and c:IsRelateToEffect(e) then
local atk=c:GetBaseAttack()
Duel.Damage(tp,atk,REASON_EFFECT)
end
end end
function s.eftg(e,c) function s.eftg(e,c)
return c:IsType(TYPE_EFFECT) and e:GetHandler():GetColumnGroup():IsContains(c) return c:IsType(TYPE_EFFECT) and e:GetHandler():GetColumnGroup():IsContains(c)
......
...@@ -69,7 +69,12 @@ function s.actcon(e) ...@@ -69,7 +69,12 @@ function s.actcon(e)
return e:GetHandler():GetColumnGroupCount()>=2 return e:GetHandler():GetColumnGroupCount()>=2
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetColumnGroup():IsContains(re:GetHandler()) or e:GetHandler()==re:GetHandler() local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
seq=aux.MZoneSequence(seq)
local cseq=aux.SZoneSequence(e:GetHandler():GetSequence())
if not bit.band(loc,LOCATION_ONFIELD)==loc then return false end
if e:GetHandlerPlayer()==re:GetHandlerPlayer() then return seq==cseq end
return seq==4-cseq
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -68,7 +68,12 @@ function s.actcon(e) ...@@ -68,7 +68,12 @@ function s.actcon(e)
return e:GetHandler():GetColumnGroupCount()>=2 return e:GetHandler():GetColumnGroupCount()>=2
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetColumnGroup():IsContains(re:GetHandler()) or e:GetHandler()==re:GetHandler() local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
seq=aux.MZoneSequence(seq)
local cseq=aux.SZoneSequence(e:GetHandler():GetSequence())
if not bit.band(loc,LOCATION_ONFIELD)==loc then return false end
if e:GetHandlerPlayer()==re:GetHandlerPlayer() then return seq==cseq end
return seq==4-cseq
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -68,7 +68,12 @@ function s.actcon(e) ...@@ -68,7 +68,12 @@ function s.actcon(e)
return e:GetHandler():GetColumnGroupCount()>=2 return e:GetHandler():GetColumnGroupCount()>=2
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetColumnGroup():IsContains(re:GetHandler()) or e:GetHandler()==re:GetHandler() local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
seq=aux.MZoneSequence(seq)
local cseq=aux.SZoneSequence(e:GetHandler():GetSequence())
if not bit.band(loc,LOCATION_ONFIELD)==loc then return false end
if e:GetHandlerPlayer()==re:GetHandlerPlayer() then return seq==cseq end
return seq==4-cseq
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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