1. After going through the tutorial during "Chapter 13 - Using the World of Warcraft API" on page 198 it gives an example that says to use UnitClass("target").

    After going through I noticed when targetting demons, pets or npcs it was using their name instead of their class.

    After doing some research the old functionality of UnitClass() can be replicated using UnitClassBase()

    -Necrosniper

  2. After going through the tutorial during "Chapter 13 - Using the World of Warcraft API" on page 198 it gives an example that says to use UnitClass("target").

    After going through I noticed when targetting demons, pets or npcs it was using their name instead of their class.

    After doing some research the old functionality of UnitClass() can be replicated using UnitClassBase()

    -Necrosniper

    Unfortunately with an ever-changing API it's rather difficult to keep everything up to date, so thanks for the update.  I'll post this on the page's errata, but you can see the documentation has already been updated on the reference pages:

    http://wowprogramming.com/docs/api/UnitClass

    http://wowprogramming.com/docs/api/UnitClassBase