#Trigger on healable NPC

1 messages · Page 1 of 1 (latest)

potent marsh
#

Hi! I'm looking to create an aura that triggers when the target is a friendly NPC >AND< is healable. Some NPCs (flight masters etc) can be healed, while others can't (merchants etc), and I would like to distinguish between these cases. Any idea how to create a trigger to check the healability™ of my target? Thanks!

stone dome
#

i don't believe there's a default trigger for that, you can use a custom trigger for it like this:
custom - status - events - PLAYER_TARGET_CHANGED, UNIT_FLAGS:target in events
custom trigger:

function()
    return UnitCanAssist("player","target")
end