Core: Some function renaming.
This commit is contained in:
1 parent
46374bf533
commit
66978cfc3b
449 files changed
+2412
-2412
No files matched your search
@@ -447,7 +447,7 @@ void Player::UpdateAttackPowerAndDamage(bool ranged)
|
||||
if (ranged)
|
||||
{
|
||||
UpdateDamagePhysical(RANGED_ATTACK);
|
||||
if (pet && pet->isHunterPet()) // At ranged attack change for hunter pet
|
||||
if (pet && pet->IsHunterPet()) // At ranged attack change for hunter pet
|
||||
pet->UpdateAttackPowerAndDamage();
|
||||
}
|
||||
else
|
||||
@@ -1301,7 +1301,7 @@ void Guardian::UpdateAttackPowerAndDamage(bool ranged)
|
||||
Unit* owner = GetOwner();
|
||||
if (owner && owner->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
if (isHunterPet()) //hunter pets benefit from owner's attack power
|
||||
if (IsHunterPet()) //hunter pets benefit from owner's attack power
|
||||
{
|
||||
float mod = 1.0f; //Hunter contribution modifier
|
||||
if (IsPet())
|
||||
@@ -1412,7 +1412,7 @@ void Guardian::UpdateDamagePhysical(WeaponAttackType attType)
|
||||
float maxdamage = ((base_value + weapon_maxdamage) * base_pct + total_value) * total_pct;
|
||||
|
||||
// Pet's base damage changes depending on happiness
|
||||
if (isHunterPet() && attType == BASE_ATTACK)
|
||||
if (IsHunterPet() && attType == BASE_ATTACK)
|
||||
{
|
||||
switch (ToPet()->GetHappinessState())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user