mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[6851] Removed level dependant scaling for warlock pets. Only hunter pets are supposed to behave in that way.
This commit is contained in:
parent
ce387d8535
commit
b83cd2a2a9
2 changed files with 2 additions and 2 deletions
|
|
@ -1006,7 +1006,7 @@ bool Pet::InitStatsForLevel(uint32 petlevel)
|
||||||
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0);
|
SetFloatValue(UNIT_MOD_CAST_SPEED, 1.0);
|
||||||
|
|
||||||
CreatureFamilyEntry const* cFamily = sCreatureFamilyStore.LookupEntry(cinfo->family);
|
CreatureFamilyEntry const* cFamily = sCreatureFamilyStore.LookupEntry(cinfo->family);
|
||||||
if(cFamily && cFamily->minScale > 0.0f)
|
if(cFamily && cFamily->minScale > 0.0f && getPetType()==HUNTER_PET)
|
||||||
{
|
{
|
||||||
float scale;
|
float scale;
|
||||||
if (getLevel() >= cFamily->maxScaleLevel)
|
if (getLevel() >= cFamily->maxScaleLevel)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6850"
|
#define REVISION_NR "6851"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue