summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs
index 08164e4..54c0daa 100644
--- a/src/componentwrapper.rs
+++ b/src/componentwrapper.rs
@@ -22,7 +22,8 @@ use crate::{
Fighter,
Healing,
Volatile,
- AttackMessage
+ AttackMessage,
+ Autofight
},
parameter::{Parameter, ParameterType}
};
@@ -134,6 +135,7 @@ components!(
Fighter (damage: Int, cooldown: Int) {Fighter{attack: AttackMessage::new(damage), cooldown}};
Healing (delay: Int, health: Int) {Healing{delay, health, next_heal: None}};
Volatile (delay: Int) {Volatile{delay, end_time: None}};
+ Autofight () {Autofight::default()};
);