# ++++++++++++++++ BOLT THROWER ++++++++++++++++ func test_multiple_damage_types_works(): target.core.frame.stat.evasion = 1 # make sure it hits var kinetic_immunity_buff := BuffResistDamage.new() kinetic_immunity_buff.damage_types = [Lancer.DAMAGE_TYPE.KINETIC] kinetic_immunity_buff.to = Buff.TO.DAMAGE_IMMUNITY UnitCondition.apply_buff_alt(target, BuffCore.create_alt(kinetic_immunity_buff)) await subject('mw_assault_rifle', Vector2i(3,3)) assert_eq(target.core.current.health, target.core.get_health_max(), 'Target took no damage due to immunity.') await subject('mw_bolt_thrower', Vector2i(3,3)) assert_lt(target.core.current.health, target.core.get_health_max(), 'Target some damage from the extra explosion damage.') # ++++++++++++++++ WAR PIKE ++++++++++++++++ func test_knockback(): target.core.frame.stat.evasion = 1 # make sure it hits var starting_target_pos:Vector2i = Vector2i(3,3) await subject('mw_war_pike', starting_target_pos) assert_ne(target.tile(), starting_target_pos, 'Target was moved from knockback.')
https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/112/447/442/343/589/971/original/a498a8a6fd23216a.png