Commit 6d460de1 authored by 聖園ミカ's avatar 聖園ミカ 🐟

man!

parent b01597ff
No preview for this file type
...@@ -51,7 +51,7 @@ function cm.cfilter2(c) ...@@ -51,7 +51,7 @@ function cm.cfilter2(c)
end end
function cm.condition(e) function cm.condition(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE return (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or ((Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and Duel.IsPlayerAffectedByEffect(tp,18700468))
end end
function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(tp) end if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(tp) end
......
...@@ -43,8 +43,8 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,8 +43,8 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and e:GetHandler():GetFlagEffect(id)<=0 return rp==1-tp and e:GetHandler():GetFlagEffect(id)<=0
end end
function s.disop(e,tp,eg,ep,ev,re,r,rp) function s.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(id,3)) then if Duel.SelectEffectYesNo(tp,e:GetHandler(),aux.Stringid(id,3)) then
Duel.Hint(HINT_CARD,0,id)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,4)) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,4))
local mg = Duel.GetMatchingGroup(s.infilter,tp,LOCATION_MZONE,0,nil) local mg = Duel.GetMatchingGroup(s.infilter,tp,LOCATION_MZONE,0,nil)
for tc in aux.Next(mg) do for tc in aux.Next(mg) do
......
...@@ -88,7 +88,9 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,9 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.Hint(HINT_CARD,0,id)
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,3)) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,3))
end end
end 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