Attack
Attacks the mobile with the specified ObjID.
If the character is not in War mode, Stealth will automatically enable it before sending the attack command.
If ObjID is 0 or the object does not exist, the method does nothing.
Атакует мобайла с указанным ObjID.
Если персонаж не находится в режиме War, Stealth автоматически включит его перед отправкой команды атаки.
Если ObjID равен 0 или объект не существует, метод ничего не делает.
procedure Attack(ObjID: Cardinal);
Parameters:
- ObjID — ID of the mobile to attack.
def Attack(ObjID: int) -> None: ...
begin
if WarTargetID <> Enemy then
Attack(Enemy);
end.
if WarTargetID() != enemy:
Attack(enemy)