Local work

This commit is contained in:
wincent 2024-09-08 17:40:32 +02:00
parent 3178a702a7
commit 328743f1e1
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -62,6 +62,8 @@ private:
std::vector<ModifierTemplate> modifiers;
int32_t effectID = 0;
std::string effectType = "";
std::vector<ModifierTemplate> debuffs;
std::vector<UpgradeScale> debuffDuration;
};
}