Scripts/Commands: .learn adjustments

Port From (https://github.com/TrinityCore/TrinityCore/commit/2319a99d875cd17a1c26ccc756bae73e2faef327)
This commit is contained in:
hondacrx
2022-06-09 20:48:29 -04:00
parent 35569af2e8
commit 2dcbe3e840
4 changed files with 160 additions and 156 deletions
+6
View File
@@ -91,6 +91,12 @@ namespace Game.Entities
}
}
public bool IsSpellValid(uint spellId, Player player = null, bool msg = true)
{
SpellInfo spellInfo = GetSpellInfo(spellId, Difficulty.None);
return IsSpellValid(spellInfo, player, msg);
}
public bool IsSpellValid(SpellInfo spellInfo, Player player = null, bool msg = true)
{
// not exist