Ok I wont put all code in just this bit.
mob
var/life = 9999
verb
Attack(mob/Victim in oview(1))
var/damage = (2200)
life -= damage
Is it possible to put an if statement so it will deal 2200 damage if the icon state is 'Shadow.dmi'? I've tried yet failed. Thanks in advance.

The answer to your problem lies in the question =P
Also, for purposes of clarification, an icon is a graphic such as a DMI, PNG, or BMP, and is denoted with apostrophes, E.G. 'myicon.dmi'. The icon_state is a specific segment of the file and is contained in quotes, such as "monster".