Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SECOND_ATTACK
- {VARIABLE_OP unit.attacks_left add 1}
- [set_variables]
- name=unit.variables
- mode=merge
- [value]
- double_attack_attacked=yes
- double_attack_turn=$turn_number
- [/value]
- [/set_variables]
- [unstore_unit]
- text= _ "double attack"
- {COLOR_HARM}
- variable=unit
- [/unstore_unit]
- #enddef
- #define WEAPON_SPECIAL_AE_MAG_DOUBLEATTACK
- # wmlxgettext: [attack]
- # wmlxgettext: [specials]
- [dummy]
- id=double attack
- name= _ "double attack"
- description=_"This unit can attack two enemies in one turn, but cannot move from a hex, where the first enemy was attacked."
- [/dummy]
- [/specials]
- [/attack]
- [event]
- name=attack_end
- id=AE_mag_doubleattack_event
- first_time_only=no
- [filter_attack]
- special=double attack
- [/filter_attack]
- [if]
- {VARIABLE_CONDITIONAL unit.variables.double_attack_attacked boolean_not_equals yes}
- [then]
- {SECOND_ATTACK}
- [/then]
- [else]
- [if]
- {VARIABLE_CONDITIONAL unit.variables.double_attack_turn not_equals $turn_number}
- [then]
- {SECOND_ATTACK}
- [/then]
- [/if]
- [/else]
- [/if]
- [/event]
- [+attack]
- [+specials]
- # wmlxgettext: [/specials]
- # wmlxgettext: [/attack]
- #enddef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement