Core/Spells: Rename SpellAttr2 to use official attribute names

Port From (https://github.com/TrinityCore/TrinityCore/commit/dda375b9868d6dbe2a4d58b386bb90ae41d25e0d)
This commit is contained in:
hondacrx
2022-06-01 11:53:42 -04:00
parent a2d9499152
commit a198e03a1d
13 changed files with 256 additions and 157 deletions
+32 -32
View File
@@ -1653,38 +1653,38 @@ namespace Framework.Constants
}
public enum SpellAttr2 : uint
{
CanTargetDead = 0x01, // 0 Can Target Dead Unit Or Corpse
Unk1 = 0x02, // 1 Vanish, Shadowform, Ghost Wolf And Other
CanTargetNotInLos = 0x04, // 2 26368 4.0.1 Dbc Change
Unk3 = 0x08, // 3
DisplayInStanceBar = 0x10, // 4 Client Displays Icon In Stance Bar When Learned, Even If Not Shapeshift
AutorepeatFlag = 0x20, // 5
CantTargetTapped = 0x40, // 6 Target Must Be Tapped By Caster
Unk7 = 0x80, // 7
Unk8 = 0x100, // 8 Not Set In 3.0.3
Unk9 = 0x200, // 9
Unk10 = 0x400, // 10 Related To Tame
HealthFunnel = 0x800, // 11
Unk12 = 0x1000, // 12 Cleave, Heart Strike, Maul, Sunder Armor, Swipe
PreserveEnchantInArena = 0x2000, // 13 Items Enchanted By Spells With This Flag Preserve The Enchant To Arenas
Unk14 = 0x4000, // 14
Unk15 = 0x8000, // 15 Not Set In 3.0.3
TameBeast = 0x10000, // 16
NotResetAutoActions = 0x20000, // 17 Don'T Reset Timers For Melee Autoattacks (Swings) Or Ranged Autoattacks (Autoshoots)
ReqDeadPet = 0x40000, // 18 Only Revive Pet And Heart Of The Pheonix
NotNeedShapeshift = 0x80000, // 19 Does Not Necessarly Need Shapeshift
Unk20 = 0x100000, // 20
DamageReducedShield = 0x200000, // 21 For Ice Blocks, Pala Immunity Buffs, Priest Absorb Shields, But Used Also For Other Spells . Not Sure!
Unk22 = 0x400000, // 22 Ambush, Backstab, Cheap Shot, Death Grip, Garrote, Judgements, Mutilate, Pounce, Ravage, Shiv, Shred
IsArcaneConcentration = 0x800000, // 23 Only Mage Arcane Concentration Have This Flag
Unk24 = 0x1000000, // 24
Unk25 = 0x2000000, // 25
UnaffectedByAuraSchoolImmune = 0x4000000, // 26 Unaffected By School Immunity
Unk27 = 0x8000000, // 27
IgnoreActionAuraInterruptFlags = 0x10000000, // 28 doesnt break auras with SpellAuraInterruptFlags::Action and SpellAuraInterruptFlags::ActionDelayed
CantCrit = 0x20000000, // 29 Spell Can'T Crit
ActiveThreat = 0x40000000, // 30 Active Threat
FoodBuff = 0x80000000 // 31 Food Or Drink Buff (Like Well Fed)
AllowDeadTarget = 0x01, // Allow Dead Target
NoShapeshiftUi = 0x02, // No Shapeshift Ui (Client Only) Description Does Not Replace Action Bar When Shapeshifted
IgnoreLineOfSight = 0x04, // Ignore Line Of Sight
AllowLowLevelBuff = 0x08, // Allow Low Level Buff
UseShapeshiftBar = 0x10, // Use Shapeshift Bar (Client Only)
AutoRepeat = 0x20, // Auto Repeat
CannotCastOnTapped = 0x40, // Cannot Cast On Tapped Description Can Only Target Untapped Units, Or Those Tapped By Caster
DoNotReportSpellFailure = 0x80, // Do Not Report Spell Failure
IncludeInAdvancedCombatLog = 0x100, // Include In Advanced Combat Log (Client Only) Description Determines Whether To Include This Aura In List Of Auras In SmsgEncounterStart
AlwaysCastAsUnit = 0x200, /*Nyi, Unk*/ // Always Cast As Unit
SpecialTamingFlag = 0x400, // Special Taming Flag Description Related To Taming?
NoTargetPerSecondCosts = 0x800, // No Target Per-Second Costs
ChainFromCaster = 0x1000, // Chain From Caster
EnchantOwnItemOnly = 0x2000, // Enchant Own Item Only
AllowWhileInvisible = 0x4000, // Allow While Invisible
DoNotConsumeIfGainedDuringCast = 0x8000, // Do Not Consume If Gained During Cast
NoActivePets = 0x10000, // No Active Pets
DoNotResetCombatTimers = 0x20000, // Do Not Reset Combat Timers Description Does Not Reset Melee/Ranged Autoattack Timer On Cast
NoJumpWhileCastPending = 0x40000, // No Jump While Cast Pending (Client Only)
AllowWhileNotShapeshiftedCasterForm = 0x80000, // Allow While Not Shapeshifted (Caster Form) Description Even If Stances Are Nonzero, Allow Spell To Be Cast Outside Of Shapeshift (Though Not In A Different Shapeshift)
InitiateCombatPostCastEnablesAutoAttack = 0x100000, // Initiate Combat Post-Cast (Enables Auto-Attack)
FailOnAllTargetsImmune = 0x200000, // Fail On All Targets Immune Description Causes Bg Flags To Be Dropped If Combined With Attr1DispelAurasOnImmunity
NoInitialThreat = 0x400000, // No Initial Threat
ProcCooldownOnFailure = 0x800000, // Proc Cooldown On Failure
ItemCastWithOwnerSkill = 0x1000000, // Item Cast With Owner Skill
DontBlockManaRegen = 0x2000000, // Don'T Block Mana Regen
NoSchoolImmunities = 0x4000000, // No School Immunities Description Allow Aura To Be Applied Despite Target Being Immune To New Aura Applications
IgnoreWeaponskill = 0x8000000, // Ignore Weaponskill
NotAnAction = 0x10000000, // Not An Action
CantCrit = 0x20000000, // Can'T Crit
ActiveThreat = 0x40000000, // Active Threat
RetainItemCast = 0x80000000 // Retain Item Cast Description Passes MCastitem To Triggered Spells
}
public enum SpellAttr3 : uint
{