Misc fixes

This commit is contained in:
hondacrx
2022-02-23 16:28:45 -05:00
parent bbc0c07697
commit 99b4a7ea8b
9 changed files with 33 additions and 293 deletions
+2 -2
View File
@@ -146,7 +146,7 @@ namespace Scripts.World.EmeraldDragons
_scheduler.Update(diff);
Unit target = SelectTarget(SelectAggroTarget.MaxThreat, 0, -50.0f, true);
Unit target = SelectTarget(SelectTargetMethod.MaxThreat, 0, -50.0f, true);
if (target)
DoCast(target, SpellIds.SummonPlayer);
@@ -182,7 +182,7 @@ namespace Scripts.World.EmeraldDragons
if (_roamTimer == 0)
{
// Chase target, but don't attack - otherwise just roam around
Unit target = SelectTarget(SelectAggroTarget.Random, 0, 0.0f, true);
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 0.0f, true);
if (target)
{
_roamTimer = RandomHelper.URand(15000, 30000);