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))
|
foreach (TalentRecord talent in Global.DB2Mgr.GetTalentsByPosition(GetClass(), talentInfo.TierID, c))
|
||||||
{
|
{
|
||||||
//Todo test me
|
if (talent.SpecID != 0 && talent.SpecID != GetUInt32Value(PlayerFields.CurrentSpecId))
|
||||||
if (talent.SpecID != GetUInt32Value(PlayerFields.CurrentSpecId))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (HasTalent(talent.Id, GetActiveTalentGroup()) && !HasFlag(PlayerFields.Flags, PlayerFlags.Resting) && HasFlag(UnitFields.Flags, UnitFlags.ImmuneToNpc))
|
if (HasTalent(talent.Id, GetActiveTalentGroup()) && !HasFlag(PlayerFields.Flags, PlayerFlags.Resting) && HasFlag(UnitFields.Flags, UnitFlags.ImmuneToNpc))
|
||||||
|
|||||||
@@ -1105,8 +1105,6 @@ namespace Game.Entities
|
|||||||
if (!IsInWorld)
|
if (!IsInWorld)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
RemoveNotOwnSingleTargetAuras(0, true);
|
|
||||||
|
|
||||||
if (IsTypeId(TypeId.Unit) || (!ToPlayer().IsGameMaster() && !ToPlayer().GetSession().PlayerLogout()))
|
if (IsTypeId(TypeId.Unit) || (!ToPlayer().IsGameMaster() && !ToPlayer().GetSession().PlayerLogout()))
|
||||||
{
|
{
|
||||||
HostileRefManager refManager = getHostileRefManager();
|
HostileRefManager refManager = getHostileRefManager();
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ namespace Game.Movement
|
|||||||
|
|
||||||
public override void DoFinalize(T owner)
|
public override void DoFinalize(T owner)
|
||||||
{
|
{
|
||||||
//if (owner.HasUnitState(UnitState.Charging))
|
if (!owner.HasUnitState(UnitState.Charging))
|
||||||
owner.ClearUnitState(UnitState.Roaming | UnitState.RoamingMove);
|
owner.ClearUnitState(UnitState.Roaming | UnitState.RoamingMove);
|
||||||
|
|
||||||
if (owner.moveSpline.Finalized())
|
if (owner.moveSpline.Finalized())
|
||||||
MovementInform(owner);
|
MovementInform(owner);
|
||||||
|
|||||||
Reference in New Issue
Block a user