mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[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:
parent
a1a70515f9
commit
f5d6fe6b01
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10127"
|
||||
#define REVISION_NR "10128"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue