1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

Fix Shield: Hold (#164)

Fixed the first hit not applying damage when  normal shield hold is selected
This commit is contained in:
sidschingis 2020-09-16 22:07:06 +02:00 committed by GitHub
parent 2471b4acf9
commit 0107e31b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -133,7 +133,7 @@ pub unsafe fn param_installer() {
if crate::training::COMMON_PARAMS as usize != 0 {
let common_params = &mut *crate::training::COMMON_PARAMS;
if is_training_mode()
&& (MENU.shield_state == Shield::Infinite || should_pause_shield_decay())
&& (MENU.shield_state == Shield::Infinite)
{
common_params.shield_damage_mul = 0.0;
} else {