Core/Spells: Rename more SpellAttr9 to official names

Port From (https://github.com/TrinityCore/TrinityCore/commit/9d4047a3be5f3de8ca7c4818c265127578dbcc81)
This commit is contained in:
Hondacrx
2024-08-25 23:49:17 -04:00
parent 9f35b4a650
commit 0bb55fd942
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -6437,7 +6437,7 @@ namespace Game.Spells
if (m_spellInfo.HasAttribute(SpellAttr4.NotInArenaOrRatedBattleground))
return isArena ? SpellCastResult.NotInArena : SpellCastResult.NotInBattleground;
if (isArena && m_spellInfo.HasAttribute(SpellAttr9.NotUsableInArena))
if (isArena && m_spellInfo.HasAttribute(SpellAttr9.NotInArena))
return SpellCastResult.NotInArena;
// check cooldowns
+1 -1
View File
@@ -2635,7 +2635,7 @@ namespace Game.Spells
if (spell != null)
spell.GetCaster().ModSpellCastTime(this, ref castTime, spell);
if (HasAttribute(SpellAttr0.UsesRangedSlot) && (!IsAutoRepeatRangedSpell()) && !HasAttribute(SpellAttr9.AimedShot))
if (HasAttribute(SpellAttr0.UsesRangedSlot) && (!IsAutoRepeatRangedSpell()) && !HasAttribute(SpellAttr9.CooldownIgnoresRangedWeapon))
castTime += 500;
return (castTime > 0) ? castTime : 0;