October 30, 201610 yr Is there anyway to check if the unit targetted is Hostile in CSharp code? something like below? return ObjectManager.GetWoWUnitHostile() Not really an issue now but the bot is always trying to cast spell on vendor... the spell is supposed to be an opening before combat
October 30, 201610 yr In my profile I don't check "hostily", I check if "not friendly" thats a different. And npc's wouldn't attack if UnitExists("target") and not UnitIsFriend("player", "target") then ... end Its LUA, but I think, there is an option in C# also
October 30, 201610 yr Author 3 hours ago, Bugreporter said: In my profile I don't check "hostily", I check if "not friendly" thats a different. And npc's wouldn't attack if UnitExists("target") and not UnitIsFriend("player", "target") then ... end Its LUA, but I think, there is an option in C# also I did tried your version, but it still kept casting...
November 2, 201610 yr Hello, you can check Reaction: wManager.Wow.ObjectManager.ObjectManager.Target.Reaction Quote Hated, Hostile, Unfriendly, Neutral, Friendly, Honored, Revered, Exalted, You can also use: wManager.Wow.ObjectManager.ObjectManager.Target.IsAttackable or use this lua code: Lua.LuaDoString<bool>("return UnitCanAttack('player', 'target');")
Create an account or sign in to comment