aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Combat/ThreatManager.cpp
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-01-12 00:07:29 -0300
committerariel- <ariel-@users.noreply.github.com>2018-01-12 00:07:29 -0300
commitf50a33341892da1dbe4a56e6c351a42591a12ec9 (patch)
tree2e2af0132983b647402f83fc05bf29a36f69d067 /src/server/game/Combat/ThreatManager.cpp
parentc50aefac963aca5daeacf409deca9692c6ca3924 (diff)
Core/Misc: kill whitespace
Diffstat (limited to 'src/server/game/Combat/ThreatManager.cpp')
-rw-r--r--src/server/game/Combat/ThreatManager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Combat/ThreatManager.cpp b/src/server/game/Combat/ThreatManager.cpp
index c7e36557b30..ffc1e1cbe31 100644
--- a/src/server/game/Combat/ThreatManager.cpp
+++ b/src/server/game/Combat/ThreatManager.cpp
@@ -115,7 +115,7 @@ void ThreatReference::UpdateTauntState(bool victimIsTaunting)
HeapNotifyIncreased();
return;
}
-
+
// Check for SPELL_AURA_MOD_DETAUNT (applied from owner to victim)
for (AuraEffect const* eff : _victim->GetAuraEffectsByType(SPELL_AURA_MOD_DETAUNT))
if (eff->GetCasterGUID() == _owner->GetGUID())
@@ -334,7 +334,7 @@ void ThreatManager::AddThreat(Unit* target, float amount, SpellInfo const* spell
{
float const origAmount = amount;
// intentional iteration by index - there's a nested AddThreat call further down that might cause AI calls which might modify redirect info through spells
- for (size_t i=0; i<redirInfo.size(); ++i)
+ for (size_t i = 0; i < redirInfo.size(); ++i)
{
auto const pair = redirInfo[i]; // (victim,pct)
Unit* redirTarget = nullptr;
@@ -366,7 +366,7 @@ void ThreatManager::AddThreat(Unit* target, float amount, SpellInfo const* spell
// otherwise, ensure we're in combat (threat implies combat!)
if (!_owner->GetCombatManager().SetInCombatWith(target)) // if this returns false, we're not actually in combat, and thus cannot have threat!
return; // typical causes: bad scripts trying to add threat to GMs, dead targets etc
-
+
// ok, we're now in combat - create the threat list reference and push it to the respective managers
ThreatReference* ref = new ThreatReference(this, target, amount);
PutThreatListRef(target->GetGUID(), ref);
@@ -710,7 +710,7 @@ void ThreatManager::PurgeThreatListRef(ObjectGuid const& guid, bool sendRemove)
if (_currentVictimRef == ref)
_currentVictimRef = nullptr;
-
+
_sortedThreatList.erase(ref->_handle);
if (sendRemove && ref->IsOnline())
SendRemoveToClients(ref->_victim);