Combat/Threat rewrite - prep & refactor

Port From (https://github.com/TrinityCore/TrinityCore/commit/8be23fcbbdf26e8169defd761e61765f301bebe0)
This commit is contained in:
hondacrx
2020-08-22 11:58:19 -04:00
parent 67bacbb731
commit 193ad3a48d
42 changed files with 533 additions and 421 deletions
@@ -313,7 +313,7 @@ namespace Scripts.Northrend.IcecrownCitadel
Talk(TextIds.SayDominateMind);
for (byte i = 0; i < _dominateMindCount; i++)
{
Unit target = SelectTarget(SelectAggroTarget.Random, 1, 0.0f, true, -(int)SpellIds.DominateMind);
Unit target = SelectTarget(SelectAggroTarget.Random, 1, 0.0f, true, false, -(int)SpellIds.DominateMind);
if (target != null)
DoCast(target, SpellIds.DominateMind);
}
@@ -423,7 +423,7 @@ namespace Scripts.Northrend.IcecrownCitadel
Talk(TextIds.SayPhase2);
Talk(TextIds.EmotePhase2);
DoStartMovement(me.GetVictim());
DoResetThreat();
ResetThreatList();
damage -= (uint)me.GetPower(PowerType.Mana);
me.SetPower(PowerType.Mana, 0);