Core/Auras: reworked multiplicative AuraEffects calculation

Port From (https://github.com/TrinityCore/TrinityCore/commit/ebc06b1d0401be69066986e18d0e926170c58023)
This commit is contained in:
hondacrx
2020-05-05 18:38:43 -04:00
parent 5a178644b5
commit 9ec956becf
15 changed files with 796 additions and 428 deletions
+11 -7
View File
@@ -87,7 +87,7 @@ namespace Framework.Constants
public enum BaseModType
{
FlatMod,
PCTmod,
PctMod,
End
}
@@ -178,14 +178,18 @@ namespace Framework.Constants
PowerStart = Mana,
PowerEnd = Pain + 1
}
public enum UnitModifierType
public enum UnitModifierFlatType
{
BaseValue = 0,
Base = 0,
BasePCTExcludeCreate = 1, // percent modifier affecting all stat values from auras and gear but not player base for level
BasePCT = 2,
TotalValue = 3,
TotalPCT = 4,
End = 5
Total = 2,
End = 3
}
public enum UnitModifierPctType
{
Base = 0,
Total = 1,
End = 2
}
public enum VictimState
{