Core/Spells: Implemented SPELL_ATTR1_CAST_WHEN_LEARNED
Port From (https://github.com/TrinityCore/TrinityCore/commit/747da1f804a05462fb0d542a9570f27a549688dc)
This commit is contained in:
@@ -1642,7 +1642,7 @@ namespace Framework.Constants
|
||||
DontDisplayInAuraBar = 0x10000000, // 28 Client Doesn'T Display These Spells In Aura Bar
|
||||
ChannelDisplaySpellName = 0x20000000, // 29 Spell Name Is Displayed In Cast Bar Instead Of 'Channeling' Text
|
||||
EnableAtDodge = 0x40000000, // 30 Overpower
|
||||
Unk31 = 0x80000000 // 31
|
||||
CastWhenLearned = 0x80000000 // 31
|
||||
}
|
||||
public enum SpellAttr2 : uint
|
||||
{
|
||||
|
||||
@@ -2542,6 +2542,8 @@ namespace Game.Entities
|
||||
CastSpell(this, spellId, true);
|
||||
return false;
|
||||
}
|
||||
else if (spellInfo.HasAttribute(SpellAttr1.CastWhenLearned))
|
||||
CastSpell(this, spellId, true);
|
||||
|
||||
// update free primary prof.points (if any, can be none in case GM .learn prof. learning)
|
||||
uint freeProfs = GetFreePrimaryProfessionPoints();
|
||||
|
||||
Reference in New Issue
Block a user