Skip to content
User Avatar
#2651
Auto-translated
AstralLein, no, if you need to find all liches among the attacking creatures and make them do something, it will be like this:
local units = GetAttackerCreatures();
for i, unit in units do
  local unit_id = GetCreatureType(unit);
  if (unit_id == CREATURE_LICH) then
    -- do something
  end
end