mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 13:09:50 -04:00
First step of comment style refactoring to doxygen-style.
This commit is contained in:
@@ -1572,7 +1572,7 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
float factor;
|
||||
uint16 baseItemLevel;
|
||||
|
||||
// TODO: Reserach coeffs for different vehicles
|
||||
/// @todo Reserach coeffs for different vehicles
|
||||
switch (GetId())
|
||||
{
|
||||
case SPELL_GEAR_SCALING:
|
||||
@@ -1587,7 +1587,7 @@ class spell_gen_vehicle_scaling : public SpellScriptLoader
|
||||
|
||||
float avgILvl = caster->ToPlayer()->GetAverageItemLevel();
|
||||
if (avgILvl < baseItemLevel)
|
||||
return; // TODO: Research possibility of scaling down
|
||||
return; /// @todo Research possibility of scaling down
|
||||
|
||||
amount = uint16((avgILvl - baseItemLevel) * factor);
|
||||
}
|
||||
@@ -3064,7 +3064,7 @@ class spell_gen_summon_elemental : public SpellScriptLoader
|
||||
{
|
||||
if (GetCaster())
|
||||
if (Unit* owner = GetCaster()->GetOwner())
|
||||
if (owner->GetTypeId() == TYPEID_PLAYER) // todo: this check is maybe wrong
|
||||
if (owner->GetTypeId() == TYPEID_PLAYER) /// @todo this check is maybe wrong
|
||||
owner->ToPlayer()->RemovePet(NULL, PET_SAVE_NOT_IN_SLOT, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user