Originally Posted by
incognit0
1. is there an API or code to check if raidmemebers have aggro?
There are two functions that would report that.
UnitDetailedThreatSituation
Code:
isTanking, status, scaledPercent, rawPercent, threatValue = UnitDetailedThreatSituation("raid1", "target")
UnitThreatSituation
Code:
status = UnitThreatSituation("raid1", "target")
Originally Posted by
incognit0
2. can you check if curent attacker on player is example beast or undead?
This function will return for example "Beast", "Undead" UnitCreatureType
Code:
type = UnitCreatureType("target")
Originally Posted by
incognit0
3. need a code to make my channel spells keep casting the spells for the full duration of the spell and not interupt the casting fro another spell after a second.
UnitChannelInfo can be used to check if the player is channeling a spell. So include a check with this function before you cast a spell that you belive is causing the interrupt.