Commit 292e5836 authored by Chen Bill's avatar Chen Bill

add FLAG_ID_CHAINING

parent ee23e105
...@@ -863,3 +863,5 @@ ACTIVITY_CHAIN =7 -- only available in custom counter ...@@ -863,3 +863,5 @@ ACTIVITY_CHAIN =7 -- only available in custom counter
CARD_MARINE_DOLPHIN =78734254 --海洋海豚(double name) CARD_MARINE_DOLPHIN =78734254 --海洋海豚(double name)
CARD_TWINKLE_MOSS =13857930 --光輝苔蘚(double name) CARD_TWINKLE_MOSS =13857930 --光輝苔蘚(double name)
CARD_QUESTION =38723936 --谜题 CARD_QUESTION =38723936 --谜题
--Special flag effect id
FLAG_ID_CHAINING =1
...@@ -595,7 +595,7 @@ function Auxiliary.dscon(e,tp,eg,ep,ev,re,r,rp) ...@@ -595,7 +595,7 @@ function Auxiliary.dscon(e,tp,eg,ep,ev,re,r,rp)
end end
--flag effect for spell counter --flag effect for spell counter
function Auxiliary.chainreg(e,tp,eg,ep,ev,re,r,rp) function Auxiliary.chainreg(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(1)==0 then if e:GetHandler():GetFlagEffect(FLAG_ID_CHAINING)==0 then
e:GetHandler():RegisterFlagEffect(1,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_CHAIN,0,1) e:GetHandler():RegisterFlagEffect(1,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_CHAIN,0,1)
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