combat phase fixes to decay, siphon tick
This commit is contained in:
parent
5029e60746
commit
b368ada693
@ -218,6 +218,9 @@ function getCombatSequence(event) {
|
||||
if (['Immunity'].includes(event[0])) return ['START_SKILL', 'POST_SKILL'];
|
||||
if (['Healing'].includes(event[0]) && event[1].skill === 'Slay') return ['POST_SKILL'];
|
||||
|
||||
if (['Effect'].includes(event[0])
|
||||
&& event[1].skill === 'Decay' && event[1].effect === 'Wither') return ['POST_SKILL'];
|
||||
|
||||
if (['Damage'].includes(event[0])
|
||||
&& event[1].skill === 'Chaos' && event[1].colour === 'RedDamage') return ['POST_SKILL'];
|
||||
|
||||
|
||||
4
server/src/skill.rs
Executable file → Normal file
4
server/src/skill.rs
Executable file → Normal file
@ -651,7 +651,7 @@ impl Skill {
|
||||
Skill::Chaos => None,
|
||||
Skill::Amplify => Some(1),
|
||||
Skill::Invert => Some(2),
|
||||
Skill::Decay => None, // dot
|
||||
Skill::Decay => Some(1), // dot
|
||||
Skill::DecayTick => None,
|
||||
Skill::Siphon => None,
|
||||
Skill::SiphonTick => None,
|
||||
@ -1155,7 +1155,7 @@ fn siphon_tick(source: &mut Cryp, target: &mut Cryp, mut results: Resolutions, s
|
||||
match e {
|
||||
Event::Damage { amount, mitigation: _, colour: _, skill: _ } => {
|
||||
results.push(Resolution::new(source, target).event(e));
|
||||
let heal = source.deal_green_damage(Skill::Siphon, amount);
|
||||
let heal = source.deal_green_damage(Skill::SiphonTick, amount);
|
||||
for h in heal {
|
||||
results.push(Resolution::new(source, source).event(h));
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user