More refactoring of code.

This commit is contained in:
hondacrx
2019-09-23 21:41:13 -04:00
parent 2418715800
commit 570aebce26
176 changed files with 2261 additions and 2265 deletions
@@ -182,10 +182,10 @@ namespace Scripts.Northrend.AzjolNerub.AzjolNerub.Nadronox
bool IsInCombatWithPlayer()
{
List<HostileReference> refs = me.GetThreatManager().getThreatList();
List<HostileReference> refs = me.GetThreatManager().GetThreatList();
foreach (HostileReference hostileRef in refs)
{
Unit target = hostileRef.getTarget();
Unit target = hostileRef.GetTarget();
if (target)
if (target.IsControlledByPlayer())
return true;