Core/Talents: Really fix talents this time.

Core/Misc: Misc fixes
This commit is contained in:
hondacrx
2018-01-12 20:46:47 -05:00
parent 81c9383512
commit d0887b7cc9
3 changed files with 3 additions and 6 deletions
@@ -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))
-2
View File
@@ -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();
@@ -99,8 +99,8 @@ namespace Game.Movement
public override void DoFinalize(T owner)
{
//if (owner.HasUnitState(UnitState.Charging))
owner.ClearUnitState(UnitState.Roaming | UnitState.RoamingMove);
if (!owner.HasUnitState(UnitState.Charging))
owner.ClearUnitState(UnitState.Roaming | UnitState.RoamingMove);
if (owner.moveSpline.Finalized())
MovementInform(owner);