UnitCastAreaSpell(unit, spell_id, x, y) – forces the hero to cast an area-of-effect spell; there must be enough mana.
unit – the name of the combat unit
spell_id – the spell ID
x, y – coordinates
x, y = pos(unit) – returns the coordinates of a unit by its name.
Auto-translated