move actions into fns
This commit is contained in:
parent
02311680ae
commit
1e09e08714
@ -539,7 +539,7 @@ impl Game {
|
||||
return self.execute(Cast { target: cast.source, ..cast }, events);
|
||||
}
|
||||
|
||||
for action in cast.actions() {
|
||||
for action in cast.actions(self, &events) {
|
||||
let new_events = match action {
|
||||
Action::Cast => vec![self.cast(cast)],
|
||||
Action::Hit => vec![self.hit(cast)],
|
||||
|
||||
2044
core/src/skill.rs
2044
core/src/skill.rs
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user