Core/DataStores: Fixed db2 structures after 7.3.5
This commit is contained in:
@@ -687,7 +687,7 @@ namespace Game.Entities
|
||||
if (mountCapability == null)
|
||||
continue;
|
||||
|
||||
if (ridingSkill < mountCapability.RequiredRidingSkill)
|
||||
if (ridingSkill < mountCapability.ReqRidingSkill)
|
||||
continue;
|
||||
|
||||
if (!mountCapability.Flags.HasAnyFlag(MountCapabilityFlags.IgnoreRestrictions))
|
||||
@@ -721,19 +721,19 @@ namespace Game.Entities
|
||||
else if (!mountCapability.Flags.HasAnyFlag(MountCapabilityFlags.Float))
|
||||
continue;
|
||||
|
||||
if (mountCapability.RequiredMap != -1 &&
|
||||
GetMapId() != mountCapability.RequiredMap &&
|
||||
GetMap().GetEntry().CosmeticParentMapID != mountCapability.RequiredMap &&
|
||||
GetMap().GetEntry().ParentMapID != mountCapability.RequiredMap)
|
||||
if (mountCapability.ReqMapID != -1 &&
|
||||
GetMapId() != mountCapability.ReqMapID &&
|
||||
GetMap().GetEntry().CosmeticParentMapID != mountCapability.ReqMapID &&
|
||||
GetMap().GetEntry().ParentMapID != mountCapability.ReqMapID)
|
||||
continue;
|
||||
|
||||
if (mountCapability.RequiredArea != 0 && !Global.DB2Mgr.IsInArea(areaId, mountCapability.RequiredArea))
|
||||
if (mountCapability.ReqAreaID != 0 && !Global.DB2Mgr.IsInArea(areaId, mountCapability.ReqAreaID))
|
||||
continue;
|
||||
|
||||
if (mountCapability.RequiredAura != 0 && !HasAura(mountCapability.RequiredAura))
|
||||
if (mountCapability.ReqSpellAuraID != 0 && !HasAura(mountCapability.ReqSpellAuraID))
|
||||
continue;
|
||||
|
||||
if (mountCapability.RequiredSpell != 0 && !HasSpell(mountCapability.RequiredSpell))
|
||||
if (mountCapability.ReqSpellKnownID != 0 && !HasSpell(mountCapability.ReqSpellKnownID))
|
||||
continue;
|
||||
|
||||
return mountCapability;
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace Game.Entities
|
||||
if (minion.HasUnitTypeMask(UnitTypeMask.Guardian))
|
||||
AddGuidValue(UnitFields.Summon, minion.GetGUID());
|
||||
|
||||
if (minion.m_Properties != null && minion.m_Properties.Type == SummonType.Minipet)
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonType.Minipet)
|
||||
{
|
||||
SetCritterGUID(minion.GetGUID());
|
||||
if (GetTypeId() == TypeId.Player)
|
||||
@@ -228,7 +228,7 @@ namespace Game.Entities
|
||||
|
||||
m_Controlled.Remove(minion);
|
||||
|
||||
if (minion.m_Properties != null && minion.m_Properties.Type == SummonType.Minipet)
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonType.Minipet)
|
||||
{
|
||||
if (GetCritterGUID() == minion.GetGUID())
|
||||
SetCritterGUID(ObjectGuid.Empty);
|
||||
|
||||
@@ -2991,7 +2991,7 @@ namespace Game.Entities
|
||||
{
|
||||
if (spellInfo.RangeEntry == null)
|
||||
return 0;
|
||||
if (spellInfo.RangeEntry.MaxRangeFriend == spellInfo.RangeEntry.MaxRangeHostile)
|
||||
if (spellInfo.RangeEntry.RangeMax[0] == spellInfo.RangeEntry.RangeMax[1])
|
||||
return spellInfo.GetMaxRange();
|
||||
if (!target)
|
||||
return spellInfo.GetMaxRange(true);
|
||||
@@ -3002,7 +3002,7 @@ namespace Game.Entities
|
||||
{
|
||||
if (spellInfo.RangeEntry == null)
|
||||
return 0;
|
||||
if (spellInfo.RangeEntry.MinRangeFriend == spellInfo.RangeEntry.MinRangeHostile)
|
||||
if (spellInfo.RangeEntry.RangeMin[0] == spellInfo.RangeEntry.RangeMin[1])
|
||||
return spellInfo.GetMinRange();
|
||||
if (!target)
|
||||
return spellInfo.GetMinRange(true);
|
||||
|
||||
@@ -1175,8 +1175,8 @@ namespace Game.Entities
|
||||
{
|
||||
ArtifactAppearanceRecord artifactAppearance = CliDB.ArtifactAppearanceStorage.LookupByKey(artifact.GetModifier(ItemModifier.ArtifactAppearanceId));
|
||||
if (artifactAppearance != null)
|
||||
if ((ShapeShiftForm)artifactAppearance.ModifiesShapeshiftFormDisplay == form)
|
||||
return artifactAppearance.ShapeshiftDisplayID;
|
||||
if ((ShapeShiftForm)artifactAppearance.OverrideShapeshiftFormID == form)
|
||||
return artifactAppearance.OverrideShapeshiftDisplayID;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1892,17 +1892,17 @@ namespace Game.Entities
|
||||
else if (GetTypeId() == TypeId.Player)
|
||||
{
|
||||
ChrClassesRecord cEntry = CliDB.ChrClassesStorage.LookupByKey(GetClass());
|
||||
if (cEntry != null && cEntry.PowerType < PowerType.Max)
|
||||
displayPower = cEntry.PowerType;
|
||||
if (cEntry != null && cEntry.DisplayPower < PowerType.Max)
|
||||
displayPower = cEntry.DisplayPower;
|
||||
}
|
||||
else if (GetTypeId() == TypeId.Unit)
|
||||
{
|
||||
Vehicle vehicle = GetVehicle();
|
||||
Vehicle vehicle = GetVehicleKit();
|
||||
if (vehicle)
|
||||
{
|
||||
PowerDisplayRecord powerDisplay = CliDB.PowerDisplayStorage.LookupByKey(vehicle.GetVehicleInfo().PowerDisplayID[0]);
|
||||
if (powerDisplay != null)
|
||||
displayPower = (PowerType)powerDisplay.PowerType;
|
||||
displayPower = (PowerType)powerDisplay.ActualType;
|
||||
else if (GetClass() == Class.Rogue)
|
||||
displayPower = PowerType.Energy;
|
||||
}
|
||||
@@ -2097,9 +2097,9 @@ namespace Game.Entities
|
||||
{
|
||||
return (Race)GetByteValue(UnitFields.Bytes0, 0);
|
||||
}
|
||||
public ulong getRaceMask()
|
||||
public long getRaceMask()
|
||||
{
|
||||
return (1ul << ((int)GetRace() - 1));
|
||||
return (1 << ((int)GetRace() - 1));
|
||||
}
|
||||
public Class GetClass()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user