Jump to content

Chen Jiang

Members
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Everything posted by Chen Jiang

  1. I wrote a logic to use Fire Ball (42833) to trigger the removal of Harvest Soul (28679) that Gothik the Harvester from Naxxramas casts on me. When worldserver.exe is loaded, the command window prints an error: attempt to index global 'spell' (a nil value). Although the code still works, but I hate to see errors. Any idea how to mitigate this error? local function RemoveHarvestSoul(event, player) spell = player:GetCurrentSpell(1) if ((spell:GetEntry() == 42833) and player:HasAura(28679)) then player:RemoveAura(28679) end end RegisterPlayerEvent(5, RemoveHarvestSoul)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use