change watch so all changes to attacks regenerates this macro

This commit is contained in:
Mark
2016-06-09 14:05:20 +02:00
parent b1b9db345d
commit 8cca1dca30
@@ -3215,14 +3215,7 @@ const updateAttackChatMacro = () => {
});
});
};
on('change:repeating_attack', (eventInfo) => {
const repeatingInfo = getRepeatingInfo('repeating_attack', eventInfo);
if (repeatingInfo && repeatingInfo.field === 'name') {
updateAttackChatMacro();
}
});
on('remove:repeating_attack', () => {
on('change:repeating_attack remove:repeating_attack', () => {
updateAttackChatMacro();
});
on('change:repeating_attack:carried change:repeating_attack:qty change:repeating_attack:weight remove:repeating_attack', () => {