Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 13 forks source link

Variable tags for target info (wrong one) #156

Closed Solanya closed 4 years ago

Solanya commented 4 years ago

Using the variable tags to get the target's race or class wasn't working, as getUnitCurrentProfile is not a real function. Fixed it by getting the unitID from "target" (naming is wonky), then calling getUnitIDCurrentProfile on it.

As a bonus, as was pointed out to me on Discord, there weren't tags to get first or last name of your target, so I added that as well. It will return UnitName result as a default in case no profile could be found.