Core/Players: Fixed traits not updating aura values when changing rank
Port From (https://github.com/TrinityCore/TrinityCore/commit/e6b553b913152667bcd1cfb79790ec70790d0f6e)
This commit is contained in:
@@ -8068,4 +8068,28 @@ namespace Game.Entities
|
||||
public uint? InstanceId;
|
||||
public uint? LfgDungeonsId;
|
||||
}
|
||||
|
||||
public class PlayerSpellTrait
|
||||
{
|
||||
public int DefinitionId;
|
||||
public int Rank;
|
||||
|
||||
public PlayerSpellTrait(int definitionId, int rank)
|
||||
{
|
||||
DefinitionId = definitionId;
|
||||
Rank = rank;
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is PlayerSpellTrait trait &&
|
||||
DefinitionId == trait.DefinitionId &&
|
||||
Rank == trait.Rank;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(DefinitionId, Rank);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user