Merge branch 'aweinstock/mindflayer-fix-20210522' into 'master'

Fix mindflayer tactic to make it shoot purple fireballs again.

See merge request veloren/veloren!2335
This commit is contained in:
Samuel Keiffer 2021-05-23 01:15:04 +00:00
commit 0aee0e2f4b

View File

@ -2843,7 +2843,7 @@ impl<'a> AgentData<'a> {
if matches!(self.char_state, CharacterState::Blink(_)) {
*num_fireballs = rand::random::<u8>() % 4;
}
} else {
} else if matches!(self.char_state, CharacterState::Wielding) {
*num_fireballs -= 1;
controller.actions.push(ControlAction::StartInput {
input: InputKind::Ability(1),