Core/Refactor: Part 3

This commit is contained in:
hondacrx
2018-05-16 19:57:48 -04:00
parent 225a5d27f7
commit 5dacd669b5
112 changed files with 564 additions and 561 deletions
+3 -3
View File
@@ -2451,7 +2451,7 @@ namespace Scripts.Spells.Generic
{
Unit owner = GetCaster().GetOwner();
if (owner)
if (owner.IsTypeId(TypeId.Player)) /// @todo this check is maybe wrong
if (owner.IsTypeId(TypeId.Player)) // @todo this check is maybe wrong
owner.ToPlayer().RemovePet(null, PetSaveMode.NotInSlot, true);
}
}
@@ -2757,7 +2757,7 @@ namespace Scripts.Spells.Generic
float factor;
ushort baseItemLevel;
/// @todo Reserach coeffs for different vehicles
// @todo Reserach coeffs for different vehicles
switch (GetId())
{
case SpellIds.GearScaling:
@@ -2772,7 +2772,7 @@ namespace Scripts.Spells.Generic
float avgILvl = caster.ToPlayer().GetAverageItemLevel();
if (avgILvl < baseItemLevel)
return; /// @todo Research possibility of scaling down
return; // @todo Research possibility of scaling down
amount = (int)((avgILvl - baseItemLevel) * factor);
}