diff --git a/dGame/NejlikaHooks.cpp b/dGame/NejlikaHooks.cpp index 77677d22..7268c011 100644 --- a/dGame/NejlikaHooks.cpp +++ b/dGame/NejlikaHooks.cpp @@ -723,10 +723,10 @@ void nejlika::NejlikaHooks::InstallHooks() { } // Get the offenders Offensive modifier - auto offenderModifiers = offenderEntity.CalculateModifier(ModifierType::Offensive, level); + auto offenderModifiers = offenderEntity.CalculateFinalModifier(ModifierType::Offensive, modifiers, level); // Get the defenders Defensive modifier - auto defensiveModifiers = damagedEntity.CalculateModifier(ModifierType::Defensive, level); + auto defensiveModifiers = damagedEntity.CalculateFinalModifier(ModifierType::Defensive, level); if (offenderModifiers == 0) offenderModifiers = 1; if (defensiveModifiers == 0) defensiveModifiers = 1; diff --git a/dGame/UpgradeEffect.h b/dGame/UpgradeEffect.h index b681ff79..13c96b3f 100644 --- a/dGame/UpgradeEffect.h +++ b/dGame/UpgradeEffect.h @@ -62,6 +62,8 @@ private: std::vector modifiers; int32_t effectID = 0; std::string effectType = ""; + std::vector debuffs; + std::vector debuffDuration; }; }