Scripts/ICC: little bit of cleanup in Valithria after the "recent" changes
Port From (https://github.com/TrinityCore/TrinityCore/commit/d7571e5d1f3b4cd5672a6344d96c782d7c83ea88)
This commit is contained in:
@@ -80,6 +80,15 @@ namespace Game.Combat
|
||||
}
|
||||
}
|
||||
|
||||
public bool HasPvECombatWithPlayers()
|
||||
{
|
||||
foreach (var reference in _pveRefs)
|
||||
if (reference.Value.GetOther(_owner).IsPlayer())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool HasPvPCombat()
|
||||
{
|
||||
foreach (var pair in _pvpRefs)
|
||||
|
||||
Reference in New Issue
Block a user