View Single Post
06-25-18, 10:55 AM   #1
Taet
A Deviate Faerie Dragon
Join Date: Jan 2010
Posts: 17
help with ContinueOnSpellLoad

I using GetSpellDescription in legion without any problems, now blizzard change this function and must by called with ContinueOnSpellLoad, but dont work any help me.

me previous (legion) code:
Lua Code:
  1. spell_desc = {
  2.                 type = 'description',
  3.                 fontSize = 'medium',
  4.                 order = 3.3,
  5.                 name = function(info)
  6.                         return GetSpellDescription(spellID)
  7.                 end,
  8.             },

me BFA code (dont work, no bugs report only dont show any):
Lua Code:
  1. spell_desc = {
  2.                 type = 'description',
  3.                 fontSize = 'medium',
  4.                 order = 3.3,
  5.                 name = function(info)
  6.                     local spell = Spell:CreateFromSpellID(spellID);
  7.                     spell:ContinueOnSpellLoad(function()
  8.                     return GetSpellDescription(spell:GetSpellID())
  9.                     end);
  10.                 end,
  11.             },
  Reply With Quote