Fixed selecting quest package rewards

This commit is contained in:
hondacrx
2017-07-02 12:00:48 -04:00
parent 0022923079
commit 06f203082f
3 changed files with 10 additions and 2 deletions
+4 -1
View File
@@ -195,8 +195,11 @@ namespace Game.Entities
maxDamage = (float)Math.Floor(avgDamage * (GetStatScalingFactor() * 0.5f + 1.0f) + 0.5f);
}
public bool IsUsableByLootSpecialization(Player player)
public bool IsUsableByLootSpecialization(Player player, bool alwaysAllowBoundToAccount)
{
if (GetFlags().HasAnyFlag(ItemFlags.IsBoundToAccount) && alwaysAllowBoundToAccount)
return true;
uint spec = player.GetUInt32Value(PlayerFields.LootSpecId);
if (spec == 0)
spec = player.GetUInt32Value(PlayerFields.CurrentSpecId);