diff options
Diffstat (limited to 'src/server')
4 files changed, 31 insertions, 31 deletions
diff --git a/src/server/game/Combat/ThreatManager.cpp b/src/server/game/Combat/ThreatManager.cpp index 5c14b5d378c..c66d07e480c 100644 --- a/src/server/game/Combat/ThreatManager.cpp +++ b/src/server/game/Combat/ThreatManager.cpp @@ -451,33 +451,33 @@ void ThreatManager::ClearAllThreat()      while (!_myThreatListEntries.empty());  } -void ThreatManager::FixtateTarget(Unit* target) +void ThreatManager::FixateTarget(Unit* target)  {      if (target)      {          auto it = _myThreatListEntries.find(target->GetGUID());          if (it != _myThreatListEntries.end())          { -            _fixtateRef = it->second; +            _fixateRef = it->second;              return;          }      } -    _fixtateRef = nullptr; +    _fixateRef = nullptr;  } -Unit* ThreatManager::GetFixtateTarget() const +Unit* ThreatManager::GetFixateTarget() const  { -    if (_fixtateRef) -        return _fixtateRef->GetVictim(); +    if (_fixateRef) +        return _fixateRef->GetVictim();      else          return nullptr;  }  ThreatReference const* ThreatManager::ReselectVictim()  { -    // fixtated target is always preferred -    if (_fixtateRef && _fixtateRef->IsAvailable()) -        return _fixtateRef; +    // fixated target is always preferred +    if (_fixateRef && _fixateRef->IsAvailable()) +        return _fixateRef;      ThreatReference const* oldVictimRef = _currentVictimRef;      if (oldVictimRef && oldVictimRef->IsOffline()) @@ -725,8 +725,8 @@ void ThreatManager::PurgeThreatListRef(ObjectGuid const& guid, bool sendRemove)      if (_currentVictimRef == ref)          _currentVictimRef = nullptr; -    if (_fixtateRef == ref) -        _fixtateRef = nullptr; +    if (_fixateRef == ref) +        _fixateRef = nullptr;      _sortedThreatList.erase(ref->_handle);      if (sendRemove && ref->IsAvailable()) diff --git a/src/server/game/Combat/ThreatManager.h b/src/server/game/Combat/ThreatManager.h index 68a0f5c4095..03c305b278c 100644 --- a/src/server/game/Combat/ThreatManager.h +++ b/src/server/game/Combat/ThreatManager.h @@ -160,11 +160,11 @@ class TC_GAME_API ThreatManager          // Removes all targets from the threat list (will cause evade in UpdateVictim if called)          void ClearAllThreat(); -        // Fixtate on the passed target; this target will always be selected until the fixtate is cleared +        // Fixate on the passed target; this target will always be selected until the fixate is cleared          // (if the target is not in the threat list, does nothing) -        void FixtateTarget(Unit* target); -        void ClearFixtate() { FixtateTarget(nullptr); } -        Unit* GetFixtateTarget() const; +        void FixateTarget(Unit* target); +        void ClearFixate() { FixateTarget(nullptr); } +        Unit* GetFixateTarget() const;          // sends SMSG_THREAT_UPDATE to all nearby clients (used by client to forward threat list info to addons)          void SendThreatListToClients() const; @@ -210,7 +210,7 @@ class TC_GAME_API ThreatManager          std::unordered_map<ObjectGuid, ThreatReference*> _myThreatListEntries;          ThreatReference const* _currentVictimRef;          ThreatReference const* ReselectVictim(); -        ThreatReference const* _fixtateRef; +        ThreatReference const* _fixateRef;          ///== OTHERS' THREAT LISTS ==          void PutThreatenedByMeRef(ObjectGuid const& guid, ThreatReference* ref); diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 66efcadfb50..90785c53017 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -885,7 +885,7 @@ public:                      handler->PSendSysMessage("%s (GUID %u, SpawnID %u) is not engaged, but still has a threat list? Well, here it is:", target->GetName().c_str(), target->GetGUID().GetCounter(), target->GetTypeId() == TYPEID_UNIT ? target->ToCreature()->GetSpawnId() : 0);                  count = 0; -                Unit* fixtateVictim = mgr.GetFixtateTarget(); +                Unit* fixateVictim = mgr.GetFixateTarget();                  for (ThreatReference const* ref : mgr.GetSortedThreatList())                  {                      Unit* unit = ref->GetVictim(); @@ -902,8 +902,8 @@ public:                              onlineStr = "";                      }                      char const* tauntStr; -                    if (unit == fixtateVictim) -                        tauntStr = " [FIXTATE]"; +                    if (unit == fixateVictim) +                        tauntStr = " [FIXATE]";                      else                          switch (ref->GetTauntState())                          { diff --git a/src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp b/src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp index ba54dff4847..8f3aaf8d4af 100644 --- a/src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp +++ b/src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp @@ -89,8 +89,8 @@ enum Spells      // Anub'ar Skirmisher      SPELL_CHARGE                    = 52538,      SPELL_BACKSTAB                  = 52540, -    SPELL_FIXTATE_TRIGGER           = 52536, -    SPELL_FIXTATE_TRIGGERED         = 52537, +    SPELL_FIXATE_TRIGGER            = 52536, +    SPELL_FIXATE_TRIGGERED          = 52537,      // Anub'ar Shadowcaster      SPELL_SHADOW_BOLT               = 52534, @@ -755,7 +755,7 @@ class npc_anub_ar_skirmisher : public CreatureScript              void SpellHitTarget(Unit* target, SpellInfo const* spell) override              {                  if (spell->Id == SPELL_CHARGE && target) -                    DoCast(target, SPELL_FIXTATE_TRIGGER); +                    DoCast(target, SPELL_FIXATE_TRIGGER);              }          }; @@ -961,35 +961,35 @@ class spell_gatewatcher_subboss_trigger : public SpellScriptLoader          }  }; -class spell_anub_ar_skirmisher_fixtate : public SpellScriptLoader +class spell_anub_ar_skirmisher_fixate : public SpellScriptLoader  {      public: -        spell_anub_ar_skirmisher_fixtate() : SpellScriptLoader("spell_anub_ar_skirmisher_fixtate") { } +        spell_anub_ar_skirmisher_fixate() : SpellScriptLoader("spell_anub_ar_skirmisher_fixate") { } -        class spell_anub_ar_skirmisher_fixtate_SpellScript : public SpellScript +        class spell_anub_ar_skirmisher_fixate_SpellScript : public SpellScript          { -            PrepareSpellScript(spell_anub_ar_skirmisher_fixtate_SpellScript); +            PrepareSpellScript(spell_anub_ar_skirmisher_fixate_SpellScript);              bool Validate(SpellInfo const* /*spell*/) override              { -                return ValidateSpellInfo({ SPELL_FIXTATE_TRIGGERED }); +                return ValidateSpellInfo({ SPELL_FIXATE_TRIGGERED });              }              void HandleScript(SpellEffIndex /*effIndex*/)              {                  if (Unit* target = GetHitUnit()) -                    target->CastSpell(GetCaster(), SPELL_FIXTATE_TRIGGERED, true); +                    target->CastSpell(GetCaster(), SPELL_FIXATE_TRIGGERED, true);              }              void Register() override              { -                OnEffectHitTarget += SpellEffectFn(spell_anub_ar_skirmisher_fixtate_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT); +                OnEffectHitTarget += SpellEffectFn(spell_anub_ar_skirmisher_fixate_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);              }          };          SpellScript* GetSpellScript() const override          { -            return new spell_anub_ar_skirmisher_fixtate_SpellScript(); +            return new spell_anub_ar_skirmisher_fixate_SpellScript();          }  }; @@ -1071,7 +1071,7 @@ void AddSC_boss_krik_thir()      new npc_gatewatcher_web_wrap();      new spell_gatewatcher_subboss_trigger(); -    new spell_anub_ar_skirmisher_fixtate(); +    new spell_anub_ar_skirmisher_fixate();      new spell_gatewatcher_web_wrap();      new achievement_watch_him_die();  | 
