I don't remember in which thread we were talking about bot attacking "dead NPCs"
I found the reason for this:
Example: at grizzly hills Venture bay there is dead NPCs. They are identified by bot as Alive with full health and stunned. The reason for this is the NPCs have hidden buff called Permanent Feign Death ID 29266 stack 0 timeleft 0
There is millions of IDs with this same name so you can't just go and tell the bot to completely ignore attacking these. What you can do is tell the bot ignore target that has buff named Permanent Feign Death
http://www.wowhead.com/spell=29266/permanent-feign-death
memory info from this:
==================================
TARGET INFO:
==================================
GetUnitDynamicFlags = SpecialInfo
WowClass = Paladin
IsLocalPlayer = False
Position = 2771,754 ; -1873,138 ; 5,567168 ; "None"
PositionWithoutType = 2771,754 ; -1873,138 ; 5,567168 ; "None"
PositionRelativeWithoutType = 2771,754 ; -1873,138 ; 5,567168 ; "None"
Health = 4886
MaxHealth = 4886
MyCharacterInFrontHim = False
HealthPercent = 100
HealthRatio = 1
IsGoodInteractDistance = False
InteractDistance = 4,5
CombatReach = 1,5
IsSwimming = False
IsFlying = False
IsMovingForward = False
IsMovingBackwards = False
IsStrafingLeft = False
IsStrafingRight = False
IsTurningLeft = False
IsTurningRight = False
IsStunned = True
IsFalling = False
IsFallingFar = False
AggroDistance = 0
Rotation = 2,007129
CreatureTypeTarget = Humanoid
FactionTemplate = wManager.Wow.Helpers.WoWFactionTemplate
Mana = 3387
MaxMana = 3387
ManaPercentage = 100
Rage = 0
MaxRage = 0
RagePercentage = 0
Fury = 0
MaxFury = 0
FuryPercentage = 0
Pain = 0
MaxPain = 0
PainPercentage = 0
Focus = 0
MaxFocus = 0
FocusPercentage = 0
Energy = 0
MaxEnergy = 0
EnergyPercentage = 0
Chi = 0
MaxChi = 0
ChiPercentage = 0
Runes = 0
MaxRunes = 6
RunesPercentage = 0
RunicPower = 0
MaxRunicPower = 0
RunicPowerPercentage = 0
SoulShards = 0
MaxSoulShards = 0
SoulShardsPercentage = 0
AstralPower = 0
MaxAstralPower = 0
AstralPowerPercentage = 0
UnitClassification = normal
IsElite = False
IsWorldBoss = False
HolyPower = 0
MaxHolyPower = 0
HolyPowerPercentage = 0
Alternate = 0
MaxAlternate = 5
AlternatePercentage = 0
Maelstrom = 0
MaxMaelstrom = 0
MaelstromPercentage = 0
Insanity = 0
MaxInsanity = 0
InsanityPercentage = 0
ArcaneCharges = 0
MaxArcaneCharges = 0
ArcaneChargesPercentage = 0
Faction = 2143
DisplayId = 24672
GetMove = False
SpeedMoving = 0
GetDistance = 14,07801
GetDistance2D = 14,04358
GetDistanceZ = 0,9840899
IsAlive = True
IsDead = False
IsLootable = False
IsMyPet = False
HasTarget = False
IsTargetingMe = False
IsTargetingMyPet = False
IsTargetingPartyMember = False
IsTargetingMeOrMyPet = False
IsTargetingMeOrMyPetOrPartyMember = False
IsMyTarget = True
IsMyPetTarget = False
IsPartyMemberTarget = False
IsMeOrMyPetTarget = True
IsMeOrMyPetOrPartyMemberTarget = True
Target = 00000000000000000000000000000000
TargetObject = (Object) : 0x00000000 : 00000000000000000000000000000000 : Null-0-0-0-0-0-0000000000
Level = 73
EffectiveLevel = 0
IsBoss = False
PetNumber = 0
Name = Westfall Brigade Marine
DBCacheRow = 1243581236
UnitFlags = NotAttackable, Stunned, Dazed
UnitNPCFlags = None
Skinnable = False
IsNpcSpiritHealer = False
IsNpcRepair = False
IsNpcVendor = False
IsFlightMaster = False
IsNpcInnkeeper = False
IsNpcVendorFood = False
IsAuctioneer = False
IsNpcTrainer = False
IsNpcWildPets = False
Summon = 00000000000000000000000000000000
CreatedBy = 00000000000000000000000000000000
CreatedBySpell = 0
SummonedBy = 00000000000000000000000000000000
IsPet = False
PetOwnerGuid = 00000000000000000000000000000000
InCombat = False
InCombatFlagOnly = False
InCombatWithMe = False
CastingSpellId = 0
CastingSpell = (Id found: 0, Name found: , NameInGame found: , Know = False, IsSpellUsable = False)
CastingTimeLeft = 0
IsCast = False
CanInterruptCasting = False
IsMounted = False
MountDisplayId = 0
TransportGuid = 00000000000000000000000000000000
InTransport = False
Reaction = Hostile
IsTracked = False
IsOnTaxi = False
NotSelectable = False
IsAttackable = False
PlayerControlled = False
Silenced = False
Rooted = False
Root = True
Influenced = False
Confused = False
Pacified = False
Fleeing = False
Possessed = False
NpcMarkerId = 0
NpcMarker = None
IsOutdoors = True
IsIndoors = False
IsPartyMember = False
IsPartyLeader = False
GetBaseAddress = 1758166220
IsValid = True
GetDescriptorStartAddress = 1758173004
Guid = 0027110007AD739E20309847601ADB40
Guid128 = Creature-0-3110-571-10001-27501-0007AD739E
Type = Unit
GetDynamicFlags = 32
IsInvisible = False
Entry = 27501
Scale = 1
BuffStack("Ghost") = 0
HaveBuff("Ghost") = False
BuffCastedBy("Ghost") = 00000000000000000000000000000000
Auras:
- Permanent Feign Death: ID=29266, Stack=0, TimeLeft=0 ms, Owner=0027110007AD739E20309847601ADB40, Flag=Passive, PlayerCasted, Harmful, Duration, Negative, CasterLevel=73, Mask=50331688