Avoid high level auras on pet when summon
This commit is contained in:
parent
b652300542
commit
f95ba1db79
1 changed files with 9 additions and 0 deletions
|
|
@ -1213,6 +1213,15 @@ void Pet::_LoadAuras(PreparedQueryResult result, uint32 timediff)
|
|||
continue;
|
||||
}
|
||||
|
||||
// avoid higher level auras if any, and adjust
|
||||
SpellInfo const* scaledSpellInfo = spellInfo->GetAuraRankForLevel(getLevel());
|
||||
if (scaledSpellInfo != spellInfo)
|
||||
spellInfo = scaledSpellInfo;
|
||||
|
||||
// again after level check
|
||||
if (!spellInfo)
|
||||
continue;
|
||||
|
||||
// negative effects should continue counting down after logout
|
||||
if (remaintime != -1 && !spellInfo->IsPositive())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue