Core/Spells: Rename SpellAttr0 to use official attribute names

Port From (https://github.com/TrinityCore/TrinityCore/commit/a31e6819447626cd7b6967665001ea89bf6a0298)
This commit is contained in:
hondacrx
2022-05-31 21:05:21 -04:00
parent 8e58467912
commit dc6eb46302
18 changed files with 104 additions and 104 deletions
+32 -32
View File
@@ -1583,38 +1583,38 @@ namespace Framework.Constants
#region Spell Attributes
public enum SpellAttr0 : uint
{
Unk0 = 0x01, // 0
ReqAmmo = 0x02, // 1 On Next Ranged
OnNextSwing = 0x04, // 2
IsReplenishment = 0x08, // 3 Not Set In 3.0.3
Ability = 0x10, // 4 Client Puts 'Ability' Instead Of 'Spell' In Game Strings For These Spells
Tradespell = 0x20, // 5 Trade Spells (Recipes), Will Be Added By Client To A Sublist Of Profession Spell
Passive = 0x40, // 6 Passive Spell
HiddenClientside = 0x80, // 7 Spells With This Attribute Are Not Visible In Spellbook Or Aura Bar
HideInCombatLog = 0x100, // 8 This Attribite Controls Whether Spell Appears In Combat Logs
TargetMainhandItem = 0x200, // 9 Client Automatically Selects Item From Mainhand Slot As A Cast Target
OnNextSwing2 = 0x400, // 10
Unk11 = 0x800, // 11
DaytimeOnly = 0x1000, // 12 Only Useable At Daytime, Not Set In 2.4.2
NightOnly = 0x2000, // 13 Only Useable At Night, Not Set In 2.4.2
IndoorsOnly = 0x4000, // 14 Only Useable Indoors, Not Set In 2.4.2
OutdoorsOnly = 0x8000, // 15 Only Useable Outdoors.
NotShapeshift = 0x10000, // 16 Not While Shapeshifted
OnlyStealthed = 0x20000, // 17 Must Be In Stealth
DontAffectSheathState = 0x40000, // 18 Client Won'T Hide Unit Weapons In Sheath On Cast/Channel
LevelDamageCalculation = 0x80000, // 19 Spelldamage Depends On Caster Level
StopAttackTarget = 0x100000, // 20 Stop Attack After Use This Spell (And Not Begin Attack If Use)
ImpossibleDodgeParryBlock = 0x200000, // 21 Cannot Be Dodged/Parried/Blocked
CastTrackTarget = 0x400000, // 22 Client Automatically Forces Player To Face Target When Casting
CastableWhileDead = 0x800000, // 23 Castable While Dead?
CastableWhileMounted = 0x1000000, // 24 Castable While Mounted
DisabledWhileActive = 0x2000000, // 25 Activate And Start Cooldown After Aura Fade Or Remove Summoned Creature Or Go
Negative1 = 0x4000000, // 26 Many Negative Spells Have This Attr
CastableWhileSitting = 0x8000000, // 27 Castable While Sitting
CantUsedInCombat = 0x10000000, // 28 Cannot Be Used In Combat
UnaffectedByInvulnerability = 0x20000000, // 29 Unaffected By Invulnerability (Hmm Possible Not...)
HeartResistCheck = 0x40000000, // 30
CantCancel = 0x80000000, // 31 Positive Aura Can'T Be Canceled
ProcFailureBurnsCharge = 0x01, /*Nyi*/ // Proc Failure Burns Charge
UsesRangedSlot = 0x02, // Uses Ranged Slot Description Use Ammo, Ranged Attack Range Modifiers, Ranged Haste, Etc.
OnNextSwingNoDamage = 0x04, // On Next Swing (No Damage) Description Both "On Next Swing" Attributes Have Identical Handling In Server & Client
DoNotLogImmuneMisses = 0x08, // Do Not Log Immune Misses (Client Only)
IsAbility = 0x10, // Is Ability Description Cannot Be Reflected, Not Affected By Cast Speed Modifiers, Etc.
IsTradeskill = 0x20, // Is Tradeskill Description Displayed In Recipe List, Not Affected By Cast Speed Modifiers
Passive = 0x40, // Passive Description Spell Is Automatically Cast On Self By Core
DoNotDisplaySpellbookAuraIconCombatLog = 0x80, // Do Not Display (Spellbook, Aura Icon, Combat Log) (Client Only) Description Not Visible In Spellbook Or Aura Bar
DoNotLog = 0x100, // Do Not Log (Client Only) Description Spell Will Not Appear In Combat Logs
HeldItemOnly = 0x200, // Held Item Only (Client Only) Description Client Will Automatically Select Main-Hand Item As Cast Target
OnNextSwing = 0x400, // On Next Swing Description Both "On Next Swing" Attributes Have Identical Handling In Server & Client
WearerCastsProcTrigger = 0x800, /*Nyi*/ // Wearer Casts Proc Trigger
ServerOnly = 0x1000, // Server Only
AllowItemSpellInPvp = 0x2000, // Allow Item Spell In Pvp
OnlyIndoors = 0x4000, // Only Indoors
OnlyOutdoors = 0x8000, // Only Outdoors
NotShapeshifted = 0x10000, // Not Shapeshifted
OnlyStealthed = 0x20000, // Only Stealthed
DoNotSheath = 0x40000, // Do Not Sheath (Client Only)
ScalesWithCreatureLevel = 0x80000, // Scales W/ Creature Level Description For Non-Player Casts, Scale Impact And Power Cost With Caster'S Level
CancelsAutoAttackCombat = 0x100000, // Cancels Auto Attack Combat Description After Casting This, The Current Auto-Attack Will Be Interrupted
NoActiveDefense = 0x200000, // No Active Defense Description Spell Cannot Be Dodged, Parried Or Blocked
TrackTargetInCastPlayerOnly = 0x400000, // Track Target In Cast (Player Only) (Client Only)
AllowCastWhileDead = 0x800000, // Allow Cast While Dead Description Spells Without This Flag Cannot Be Cast By Dead Units In Non-Triggered Contexts
AllowWhileMounted = 0x1000000, // Allow While Mounted
CooldownOnEvent = 0x2000000, // Cooldown On Event Description Spell Is Unusable While Already Active, And Cooldown Does Not Begin Until The Effects Have Worn Off
AuraIsDebuff = 0x4000000, // Aura Is Debuff Description Forces The Spell To Be Treated As A Negative Spell
AllowWhileSitting = 0x8000000, // Allow While Sitting
NotInCombatOnlyPeaceful = 0x10000000, // Not In Combat (Only Peaceful)
NoImmunities = 0x20000000, // No Immunities Description Allows Spell To Pierce Invulnerability, Unless The Invulnerability Spell Also Has This Attribute
HeartbeatResist = 0x40000000, // Heartbeat Resist Description Periodically Re-Rolls Against Resistance To Potentially Expire Aura Early
NoAuraCancel = 0x80000000 // No Aura Cancel Description Prevents The Player From Voluntarily Canceling A Positive Aura
}
public enum SpellAttr1 : uint
{