hostility fix

This commit is contained in:
Mashy 2019-05-22 22:59:39 +10:00
parent 2384be897e
commit 62c6e4bc42

View File

@ -1184,8 +1184,8 @@ fn hex(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, skill: Sk
}
fn hostility(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, skill: Skill) -> Resolutions {
skill.effect().into_iter()
.for_each(|e| (results.push(Resolution::new(source, target).event(target.add_effect(skill, e)))));
let hostility = skill.effect().first().unwrap().clone();
results.push(Resolution::new(source, target).event(target.add_effect(skill, hostility)));
return results;;
}