Core/Player: Recast lost by death item obtain spells of any items held in the inventory when resurrecting

This commit is contained in:
hondacrx
2018-03-18 12:36:04 -04:00
parent 95eb49f5de
commit 5fa0556edf
7 changed files with 68 additions and 34 deletions
+1 -1
View File
@@ -1057,7 +1057,7 @@ namespace Game
if (item.GetTemplate().Effects.Count < 2)
return;
uint spellToLearn = item.GetTemplate().Effects[1].SpellID;
uint spellToLearn = (uint)item.GetTemplate().Effects[1].SpellID;
foreach (BattlePetSpeciesRecord entry in CliDB.BattlePetSpeciesStorage.Values)
{
if (entry.SummonSpellID == spellToLearn)