mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
fix(Core/Entities): extend combo point system to all Units (#9816)
- Closes #1140
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user