fix(Core/Entities): extend combo point system to all Units (#9816)

- Closes #1140
This commit is contained in:
UltraNix
2022-01-07 11:18:03 +01:00
committed by GitHub
parent 2e6213d526
commit 2c6a692000
9 changed files with 217 additions and 182 deletions

View File

@@ -527,6 +527,21 @@ public:
SpellCastTargets m_targets;
SpellCustomErrors m_customError;
void AddComboPointGain(Unit* target, int8 amount)
{
if (target != m_comboTarget)
{
m_comboTarget = target;
m_comboPointGain = amount;
}
else
{
m_comboPointGain += amount;
}
}
Unit* m_comboTarget;
int8 m_comboPointGain;
UsedSpellMods m_appliedMods;
PathGenerator* m_pathFinder; // pussywizard: for precomputing path for charge