!?FU783;
!!BA:E?v1; [Check if Network Battle: v1>0 if yes]
!?FU783&v1=0; [Continue function 783 if not a Network Battle]
!!BG:A?y1; [get type of action]
!!BG:Q?y2; [get current acting side]
!!BHy2:N?y3; [get acting hero number if any]
!!BG:E?y5; [get destination monster stack]
!!IF&y3<>-1:Wy3; [use acting hero's w variables]
!!VRy4:S0; [assume no extra-spell ability]
!!VRy4&y2=0/-600:S1; [check flag by side for allowing extra spell]
!!VRy4&y2=1/-601:S1;
!!BHy2&y3<>-1/w66=3/y4=1:M?y6; [get current spellcasting enabling]
!!BHy2&y3<>-1/w66=3/y4=1/y6=1:M0; [re-enable spellcasting]
!!IF&y3<>-1/w66=3/y4=1/y6=1/y2=0:V600/1; [remember extra spell was granted]
!!IF&y3<>-1/w66=3/y4=1/y6=1/y2=1:V601/1;
!!BMy5&y5<>-1:F?i; [get flags of target stack]
!!VRi:&-623630; [remove some abilities не надо удалять флаг "двухгексовый" при действии способности "Вуду"]
!!BMy5&y5<>-1/y1=6/y3<>-1/w67=3:Fi; [steal abilities with voodoo]
!!VRy7:S1 -y2; [get attacked side]
!!BHy7:N?y8; [get attacked hero number if any]
!!IF&y8<>-1:Wy8; [use attacked hero's w variables]
!!BMy5&y5<>-1:R?y9 F?y10; [get number of retaliates, y10 - флаги атакуемого отряда] !!VRy10:&64; [y10>0 для боевых машин]
!!VRy9&y10=0:+1; [увеличиваем число ответов, если НЕ боевая машина]
!!BMy5&y5<>-1/y8<>-1/w65=3/y1=6:Ry9; [regain a retaliate]
BattleHeroes Rus/Eng | ERA scripts (+ReMagic) Rus/Eng