remove inversion event

This commit is contained in:
Mashy 2019-10-23 19:17:57 +10:00
parent a59a13e2e6
commit e6e7713539
3 changed files with 7 additions and 9 deletions

View File

@ -75,8 +75,6 @@ function getObjects(resolution, stages, game, account) {
function getSequence(resolution) {
if (!resolution.event) return [];
if (resolution.event[0] === 'Inversion') return [];
switch (resolution.stages) {
case 'AllStages': return ['START_SKILL', 'END_SKILL', 'POST_SKILL'];
case 'StartEnd': return ['START_SKILL', 'END_SKILL'];

View File

@ -606,7 +606,7 @@ impl Construct {
});
},
true => {
events.push(Event::Inversion { skill });
// events.push(Event::Inversion { skill });
// there is no green shield (yet)
let current_green_life = self.green_life();
@ -669,7 +669,7 @@ impl Construct {
});
},
true => {
events.push(Event::Inversion { skill });
// events.push(Event::Inversion { skill });
let current_green_life = self.green_life();
self.green_life.increase(modified_power);
@ -738,7 +738,7 @@ impl Construct {
});
},
true => {
events.push(Event::Inversion { skill });
// events.push(Event::Inversion { skill });
let current_green_life = self.green_life();
self.green_life.increase(modified_power);

View File

@ -2004,10 +2004,10 @@ mod tests {
// attack should heal and recharge red shield
let mut results = attack(&mut x, &mut y, vec![], Skill::Attack);
match results.remove(0).event {
Event::Inversion { skill } => assert_eq!(skill, Skill::Attack),
_ => panic!("not inversion"),
};
// match results.remove(0).event {
// Event::Inversion { skill } => assert_eq!(skill, Skill::Attack),
// _ => panic!("not inversion"),
//};
match results.remove(0).event {
Event::Healing { skill: _, overhealing: _, amount } => assert!(amount > 0),