wow20230625
Members
-
Joined
-
Last visited
Reputation Activity
-
wow20230625 reacted to Droidz in Snippets codes for quest profilesIgnore fighting back
To disable detection when the character is attacked, use this c# code:
wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = true; To reactivate attack detection:
wManager.Wow.Helpers.Conditions.ForceIgnoreIsAttacked = false; (don't forget to reactivate it, or restart WRobot if you want use other profile/product)
You can also ignore fighting back with specific mob:
WoWUnit unit = new WoWUnit(0); if (unit.IsValid && !wManager.Wow.ObjectManager.ObjectManager.BlackListObjectManagerGuid.Contains(unit.Guid)) wManager.Wow.ObjectManager.ObjectManager.BlackListGetUnitAttackPlayerGuidTime.Add(unit.Guid, System.DateTime.Now + System.TimeSpan.FromMinutes(2));