Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define APPLY_EXTRA_AMLA_EFFECT _AMLA_ID _ACTIONS
- [event]
- id="post_advance_ + {_AMLA_ID}"
- name=post advance
- first_time_only=no
- [filter]
- side=1
- role=hero
- [/filter]
- [store_amlas]
- id=$unit.id
- variable=temp_advancements
- [/store_amlas]
- {FOREACH temp_advancements.modifications.advance i}
- [if]
- {VARIABLE_LEXICAL_EQUALS temp_advancements.modifications.advance[$i].id {_AMLA_ID}}
- [then]
- {_ACTIONS}
- {LOG_NX_DBG ("Post-advance commands applied for AMLA '" + {_AMLA_ID} + "'")}
- [/then]
- [/if]
- {NEXT i}
- {CLEAR_VARIABLE temp_advancements}
- [/event]
- #enddef
Advertisement
Add Comment
Please, Sign In to add comment