mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
chore(Core/Misc): Change all TODO to doxygen comment (#14966)
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
#include "World.h"
|
||||
#include "WorldPacket.h"
|
||||
|
||||
// TODO: this import is not necessary for compilation and marked as unused by the IDE
|
||||
/// @todo: this import is not necessary for compilation and marked as unused by the IDE
|
||||
// however, for some reasons removing it would cause a damn linking issue
|
||||
// there is probably some underlying problem with imports which should properly addressed
|
||||
// see: https://github.com/azerothcore/azerothcore-wotlk/issues/9766
|
||||
@@ -586,7 +586,7 @@ void Spell::EffectSchoolDMG(SpellEffIndex effIndex)
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: should this be put on taken but not done?
|
||||
/// @todo: should this be put on taken but not done?
|
||||
if (found)
|
||||
damage += m_spellInfo->Effects[EFFECT_1].CalcValue();
|
||||
|
||||
@@ -797,7 +797,7 @@ void Spell::EffectTriggerSpell(SpellEffIndex effIndex)
|
||||
|
||||
uint32 triggered_spell_id = m_spellInfo->Effects[effIndex].TriggerSpell;
|
||||
|
||||
// todo: move those to spell scripts
|
||||
/// @todo: move those to spell scripts
|
||||
if (m_spellInfo->Effects[effIndex].Effect == SPELL_EFFECT_TRIGGER_SPELL
|
||||
&& effectHandleMode == SPELL_EFFECT_HANDLE_LAUNCH_TARGET)
|
||||
{
|
||||
@@ -1422,7 +1422,7 @@ void Spell::EffectSendEvent(SpellEffIndex effIndex)
|
||||
// some spells have no target entries in dbc and they use focus target
|
||||
if (focusObject)
|
||||
target = focusObject;
|
||||
// TODO: there should be a possibility to pass dest target to event script
|
||||
/// @todo: there should be a possibility to pass dest target to event script
|
||||
}
|
||||
|
||||
LOG_DEBUG("spells.aura", "Spell ScriptStart {} for spellid {} in EffectSendEvent ", m_spellInfo->Effects[effIndex].MiscValue, m_spellInfo->Id);
|
||||
@@ -1827,7 +1827,7 @@ void Spell::EffectCreateItem2(SpellEffIndex effIndex)
|
||||
else
|
||||
player->AutoStoreLoot(m_spellInfo->Id, LootTemplates_Spell); // create some random items
|
||||
}
|
||||
// TODO: ExecuteLogEffectCreateItem(i, m_spellInfo->Effects[i].ItemType);
|
||||
/// @todo: ExecuteLogEffectCreateItem(i, m_spellInfo->Effects[i].ItemType);
|
||||
}
|
||||
|
||||
void Spell::EffectCreateRandomItem(SpellEffIndex /*effIndex*/)
|
||||
@@ -1846,7 +1846,7 @@ void Spell::EffectCreateRandomItem(SpellEffIndex /*effIndex*/)
|
||||
|
||||
// create some random items
|
||||
player->AutoStoreLoot(m_spellInfo->Id, LootTemplates_Spell);
|
||||
// TODO: ExecuteLogEffectCreateItem(i, m_spellInfo->Effects[i].ItemType);
|
||||
/// @todo: ExecuteLogEffectCreateItem(i, m_spellInfo->Effects[i].ItemType);
|
||||
}
|
||||
|
||||
void Spell::EffectPersistentAA(SpellEffIndex effIndex)
|
||||
@@ -2107,7 +2107,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
||||
if (gameObjTarget)
|
||||
{
|
||||
GameObjectTemplate const* goInfo = gameObjTarget->GetGOInfo();
|
||||
// Arathi Basin banner opening. // TODO: Verify correctness of this check
|
||||
// Arathi Basin banner opening. /// @todo: Verify correctness of this check
|
||||
if ((goInfo->type == GAMEOBJECT_TYPE_BUTTON && goInfo->button.noDamageImmune) ||
|
||||
(goInfo->type == GAMEOBJECT_TYPE_GOOBER && goInfo->goober.losOK))
|
||||
{
|
||||
@@ -2139,7 +2139,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
|
||||
}
|
||||
return;
|
||||
}
|
||||
// TODO: Add script for spell 41920 - Filling, becouse server it freze when use this spell
|
||||
/// @todo: Add script for spell 41920 - Filling, becouse server it freze when use this spell
|
||||
// handle outdoor pvp object opening, return true if go was registered for handling
|
||||
// these objects must have been spawned by outdoorpvp!
|
||||
else if (gameObjTarget->GetGOInfo()->type == GAMEOBJECT_TYPE_GOOBER && sOutdoorPvPMgr->HandleOpenGo(player, gameObjTarget))
|
||||
@@ -2687,7 +2687,7 @@ void Spell::EffectDualWield(SpellEffIndex /*effIndex*/)
|
||||
|
||||
void Spell::EffectPull(SpellEffIndex effIndex)
|
||||
{
|
||||
// TODO: create a proper pull towards distract spell center for distract
|
||||
/// @todo: create a proper pull towards distract spell center for distract
|
||||
EffectNULL(effIndex);
|
||||
}
|
||||
|
||||
@@ -3712,7 +3712,7 @@ void Spell::EffectInterruptCast(SpellEffIndex effIndex)
|
||||
if (!unitTarget || !unitTarget->IsAlive())
|
||||
return;
|
||||
|
||||
// TODO: not all spells that used this effect apply cooldown at school spells
|
||||
/// @todo: not all spells that used this effect apply cooldown at school spells
|
||||
// also exist case: apply cooldown to interrupted cast only and to all spells
|
||||
// there is no CURRENT_AUTOREPEAT_SPELL spells that can be interrupted
|
||||
for (uint32 i = CURRENT_FIRST_NON_MELEE_SPELL; i < CURRENT_AUTOREPEAT_SPELL; ++i)
|
||||
@@ -3794,7 +3794,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
|
||||
return;
|
||||
|
||||
// TODO: we must implement hunter pet summon at login there (spell 6962)
|
||||
/// @todo: we must implement hunter pet summon at login there (spell 6962)
|
||||
|
||||
switch (m_spellInfo->SpellFamilyName)
|
||||
{
|
||||
@@ -4554,7 +4554,7 @@ void Spell::EffectFeedPet(SpellEffIndex effIndex)
|
||||
|
||||
uint32 count = 1;
|
||||
player->DestroyItemCount(foodItem, count, true);
|
||||
// TODO: fix crash when a spell has two effects, both pointed at the same item target
|
||||
/// @todo: fix crash when a spell has two effects, both pointed at the same item target
|
||||
|
||||
m_caster->CastCustomSpell(pet, m_spellInfo->Effects[effIndex].TriggerSpell, &benefit, nullptr, nullptr, true);
|
||||
}
|
||||
@@ -5248,7 +5248,7 @@ void Spell::EffectResurrectPet(SpellEffIndex /*effIndex*/)
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Better to fail Hunter's "Revive Pet" at cast instead of here when casting ends
|
||||
/// @todo: Better to fail Hunter's "Revive Pet" at cast instead of here when casting ends
|
||||
if (pet->IsAlive())
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user