|
|
@ -264,8 +264,11 @@ function tools.empregnate(unit)
|
|
|
|
if unit==nil then
|
|
|
|
if unit==nil then
|
|
|
|
unit=getSelectedUnit()
|
|
|
|
unit=getSelectedUnit()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if unit==nil then
|
|
|
|
if unit==nil then
|
|
|
|
unit=getCreatureAtPos(getxyz())
|
|
|
|
unit=getCreatureAtPos(getxyz())
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if unit==nil then
|
|
|
|
if unit==nil then
|
|
|
|
error("Failed to empregnate. Unit not selected/valide")
|
|
|
|
error("Failed to empregnate. Unit not selected/valide")
|
|
|
|
end
|
|
|
|
end
|
|
|
|