mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 13:07:31 +00:00
Local work
This commit is contained in:
parent
3178a702a7
commit
328743f1e1
@ -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;
|
||||
|
@ -62,6 +62,8 @@ private:
|
||||
std::vector<ModifierTemplate> modifiers;
|
||||
int32_t effectID = 0;
|
||||
std::string effectType = "";
|
||||
std::vector<ModifierTemplate> debuffs;
|
||||
std::vector<UpgradeScale> debuffDuration;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user