Avoid high level auras on pet when summon
This commit is contained in:
@@ -1213,6 +1213,15 @@ void Pet::_LoadAuras(PreparedQueryResult result, uint32 timediff)
|
|||||||
continue;
|
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
|
// negative effects should continue counting down after logout
|
||||||
if (remaintime != -1 && !spellInfo->IsPositive())
|
if (remaintime != -1 && !spellInfo->IsPositive())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user