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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user