diff --git a/cheats/trigger.py b/cheats/trigger.py index 12938f8..ef61feb 100644 --- a/cheats/trigger.py +++ b/cheats/trigger.py @@ -39,6 +39,10 @@ class Trigger(Hack): ennemy = mem.read_uint( client + offset["dwEntityList"] + (crosshair_id - 1) * offset["entity_size"]) + # Ignore dormant + if mem.read_bool(ennemy + offset["m_bDormant"]): + return + # Check if ennemy is alive if mem.read_int(ennemy + offset["m_lifeState"]): return