Core/Talents: Really fix talents this time.
Core/Misc: Misc fixes
This commit is contained in:
@@ -158,8 +158,7 @@ namespace Game.Entities
|
||||
{
|
||||
foreach (TalentRecord talent in Global.DB2Mgr.GetTalentsByPosition(GetClass(), talentInfo.TierID, c))
|
||||
{
|
||||
//Todo test me
|
||||
if (talent.SpecID != GetUInt32Value(PlayerFields.CurrentSpecId))
|
||||
if (talent.SpecID != 0 && talent.SpecID != GetUInt32Value(PlayerFields.CurrentSpecId))
|
||||
continue;
|
||||
|
||||
if (HasTalent(talent.Id, GetActiveTalentGroup()) && !HasFlag(PlayerFields.Flags, PlayerFlags.Resting) && HasFlag(UnitFields.Flags, UnitFlags.ImmuneToNpc))
|
||||
|
||||
@@ -1105,8 +1105,6 @@ namespace Game.Entities
|
||||
if (!IsInWorld)
|
||||
return res;
|
||||
|
||||
RemoveNotOwnSingleTargetAuras(0, true);
|
||||
|
||||
if (IsTypeId(TypeId.Unit) || (!ToPlayer().IsGameMaster() && !ToPlayer().GetSession().PlayerLogout()))
|
||||
{
|
||||
HostileRefManager refManager = getHostileRefManager();
|
||||
|
||||
Reference in New Issue
Block a user