[10128] Since 3.3 pets receive 100% of master's resilience

(based on zergtmn's repo commit 21eba43)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
zerg 2010-06-30 21:54:34 +04:00 committed by VladimirMangos
parent a1a70515f9
commit f5d6fe6b01
2 changed files with 3 additions and 3 deletions

View file

@ -13657,10 +13657,10 @@ float Unit::GetCombatRatingReduction(CombatRating cr) const
return ((Player const*)this)->GetRatingBonusValue(cr);
else if (((Creature const*)this)->isPet())
{
// Player's pet have 0.4 resilience from owner
// Player's pet get 100% resilience from owner
if (Unit* owner = GetOwner())
if(owner->GetTypeId() == TYPEID_PLAYER)
return ((Player*)owner)->GetRatingBonusValue(cr) * 0.4f;
return ((Player*)owner)->GetRatingBonusValue(cr);
}
return 0.0f;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10127"
#define REVISION_NR "10128"
#endif // __REVISION_NR_H__