shagu / pfUI

A User Interface Replacement for World of Warcraft: Vanilla & TBC
https://shagu.org/pfUI
MIT License
333 stars 116 forks source link

[libcast.lua] The "CastSpell" post-hook should set the lastcasttex directly from the return arguments of libspell.GetSpellInfo() #1294

Closed dsidirop closed 1 month ago

dsidirop commented 1 month ago

There's no need to call 'GetSpellTexture(id, bookType)' separately like we do now.

In the same vein of thought the spell-name is already returned by libspell.GetSpellInfo().