From 2b22b85acbdae5eb20b7e3fc482d64ea4ee86ed3 Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 25 Mar 2019 18:25:43 +1100 Subject: [PATCH] reverse resolutions cause of pop --- server/WORKLOG.md | 3 --- server/src/game.rs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/WORKLOG.md b/server/WORKLOG.md index 4289a96e..2acc618f 100644 --- a/server/WORKLOG.md +++ b/server/WORKLOG.md @@ -22,9 +22,6 @@ ensure all skills impl Skill::Slay -> red attack with bonus somethingorother for blue / maim no healing Hatred -> damage received converted into bonus dmg - on attack - Skill::Toxic -> apply debuff to attackers - make parry semi-aggressive constants change to ownership pattern diff --git a/server/src/game.rs b/server/src/game.rs index 219e6400..c6e53cdc 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -432,6 +432,7 @@ impl Game { resolutions.append(&mut cast.skill.resolve(&mut source, target)); } + resolutions.reverse(); while let Some(resolution) = resolutions.pop() { // fixme for mash self.log_resolution(cast.speed, cast.skill, &resolution);