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

byd

parent 73a34056
Pipeline #29586 passed with stages
in 33 minutes and 39 seconds
...@@ -44,13 +44,13 @@ function s.indtg(e,c) ...@@ -44,13 +44,13 @@ function s.indtg(e,c)
and c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_FIRE)
end end
function s.indct(e,re,r,rp) function s.indct(e,re,r,rp)
local tc=Duel.GetAttacker() if bit.band(r,REASON_BATTLE)==0 then return 0 end
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end local a=Duel.GetAttacker()
if bit.band(r,REASON_BATTLE)~=0 then local tc=a:GetBattleTarget()
tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) if tc and tc:IsControler(1-tp) then a,tc=tc,a end
return 1 tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
else return 0 end return 1
end end
function s.actcon(e) function s.actcon(e)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
...@@ -64,9 +64,10 @@ function s.filter(e,c) ...@@ -64,9 +64,10 @@ function s.filter(e,c)
and c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_FIRE)
end end
function s.damlimit(e,c) function s.damlimit(e,c)
local tc=Duel.GetAttacker()
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end local a=Duel.GetAttacker()
local tc=a:GetBattleTarget()
if tc and tc:IsControler(1-tp) then a,tc=tc,a end
if tc:GetFlagEffect(id)==0 then if tc:GetFlagEffect(id)==0 then
return 1 return 1
else return 0 end else return 0 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