mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
refactor(Core/Object): getLevel() -> GetLevel() (#14122)
* refactor(Core/Object): getLevel() -> GetLevel() * fix build and sneak some doxygen in * codeSTLE * codestyle
This commit is contained in:
@@ -149,7 +149,7 @@ class spell_dk_raise_ally : public SpellScript
|
||||
if (Unit* ghoul = unitTarget->GetCharm())
|
||||
{
|
||||
//health, mana, armor and resistance
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(ghoul->GetEntry(), ghoul->getLevel());
|
||||
PetLevelInfo const* pInfo = sObjectMgr->GetPetLevelInfo(ghoul->GetEntry(), ghoul->GetLevel());
|
||||
if (pInfo) // exist in DB
|
||||
{
|
||||
ghoul->SetCreateHealth(pInfo->health);
|
||||
@@ -159,8 +159,8 @@ class spell_dk_raise_ally : public SpellScript
|
||||
ghoul->SetCreateStat(Stats(stat), float(pInfo->stats[stat]));
|
||||
}
|
||||
|
||||
ghoul->SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(ghoul->getLevel() - (ghoul->getLevel() / 4)));
|
||||
ghoul->SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(ghoul->getLevel() + (ghoul->getLevel() / 4)));
|
||||
ghoul->SetBaseWeaponDamage(BASE_ATTACK, MINDAMAGE, float(ghoul->GetLevel() - (ghoul->GetLevel() / 4)));
|
||||
ghoul->SetBaseWeaponDamage(BASE_ATTACK, MAXDAMAGE, float(ghoul->GetLevel() + (ghoul->GetLevel() / 4)));
|
||||
|
||||
// Avoidance, Night of the Dead
|
||||
if (Aura* aur = ghoul->AddAura(62137, ghoul))
|
||||
|
||||
Reference in New Issue
Block a user