Core/Auras: Implemented mount equipment

Port From (https://github.com/TrinityCore/TrinityCore/commit/6dd5fb9d88e7a8b7da696bbe7b96947217b1ace2)
This commit is contained in:
Hondacrx
2025-02-17 15:06:19 -05:00
parent f3b2f98c78
commit 4d2dbbcf16
8 changed files with 154 additions and 7 deletions
+13 -5
View File
@@ -1889,11 +1889,19 @@ namespace Framework.Constants
public enum MountFlags : int
{
SelfMount = 0x02, // Player becomes the mount himself
FactionSpecific = 0x04,
PreferredSwimming = 0x10,
PreferredWaterWalking = 0x20,
HideIfUnknown = 0x40
ServerOnly = 0x01,
IsSelfMount = 0x02,
ExcludeFromJournalIfFactionDoesntMatch = 0x04,
AllowMountedCombat = 0x08,
SummonRandomFavorWhileUnderwater = 0x10,
SummonRandomFavorWhileAtWaterSurface = 0x20,
ExcludeFromJournalIfNotLearned = 0x40,
SummonRandomDoNotFavorWhenGrounded = 0x80,
ShowInSpellbook = 0x100,
AddToActionBarOnLearn = 0x200,
NotForUseAsATaxi = 0x400,
MountEquipmentEffectsSuppressed = 0x800,
DisablePlayerMountPreview = 0x1000,
}
public enum PathPropertyIndex
@@ -962,6 +962,10 @@ namespace Framework.Database
PrepareStatement(HotfixStatements.SEL_MOUNT_CAPABILITY, "SELECT ID, Flags, ReqRidingSkill, ReqAreaID, ReqSpellAuraID, ReqSpellKnownID, ModSpellAuraID, " +
"ReqMapID, PlayerConditionID, FlightCapabilityID FROM mount_capability WHERE (`VerifiedBuild` > 0) = ?");
// MountEquipment.db2
PrepareStatement(HotfixStatements.SEL_MOUNT_EQUIPMENT, "SELECT ID, Item, BuffSpell, Unknown820, LearnedBySpell FROM mount_equipment" +
" WHERE (`VerifiedBuild` > 0) = ?");
// MountTypeXCapability.db2
PrepareStatement(HotfixStatements.SEL_MOUNT_TYPE_X_CAPABILITY, "SELECT ID, MountTypeID, MountCapabilityID, OrderIndex FROM mount_type_x_capability" +
" WHERE (`VerifiedBuild` > 0) = ?");
@@ -2095,6 +2099,8 @@ namespace Framework.Database
SEL_MOUNT_CAPABILITY,
SEL_MOUNT_EQUIPMENT,
SEL_MOUNT_TYPE_X_CAPABILITY,
SEL_MOUNT_X_DISPLAY,