The scirpt got messed up so I resend it unformated:
#!/bin/bash
# Date : 2016-07-31 08:45
# Last revision : 2016-12-01
# Wine version used : 1.9.23-staging
# Distribution used to test : Ubuntu 16.04 64bits, manjaro
# Author : nosklo
# Last Editor: ThanosApostolou
# Depend :
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Heroes of the Storm"
PREFIX="heroes_of_the_storm"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID 2627
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "http://us.battle.net/heroes/en/" "EdRIn" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "1.9.23-staging"
# Might be needed if you get crashes
# POL_Wine_OverrideDLL "native,builtin" "dbghelp"
# POL_Wine_OverrideDLL "native,builtin" "winhttp"
# POL_Wine_OverrideDLL "native,builtin" "wininet"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-heap-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-locale-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-math-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-runtime-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-stdio-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "api-ms-win-crt-convert-l1-1-0"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "ucrtbase"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "" "d3d11"
POL_Call POL_Install_corefonts
POL_Call POL_Install_RegisterFonts
# Download & Install the game.
# Multiple Language support. See https://eu.battle.net/account/download/?show=hearthstone&style=hearthstone
POL_SetupWindow_menu "$(eval_gettext 'What language do you want to install?')" "Language Selection" \
"English|Español (AL)|Português (BR) |Deutsch|Español (EU)|Português (EU)|Français|Russian|Italiano|Polski|Korean|Chinese (Taiwan)|Chinese (China)" "|"
case "$APP_ANSWER" in
"English")
EXE_FILE="Heroes-of-the-Storm-Setup-enUS.exe";;
"Español (AL)")
EXE_FILE="Heroes-of-the-Storm-Setup-esMX.exe";;
"Português (BR)")
EXE_FILE="Heroes-of-the-Storm-Setup-ptBR.exe";;
"Deutsch")
EXE_FILE="Heroes-of-the-Storm-Setup-deDE.exe";;
"Español (EU)")
EXE_FILE="Heroes-of-the-Storm-Setup-esES.exe";;
"Português (EU)")
EXE_FILE="Heroes-of-the-Storm-Setup-ptPT.exe";;
"Français")
EXE_FILE="Heroes-of-the-Storm-Setup-frFR.exe";;
"Russian")
EXE_FILE="Heroes-of-the-Storm-Setup-ruRU.exe";;
"Italiano")
EXE_FILE="Heroes-of-the-Storm-Setup-itIT.exe";;
"Polski")
EXE_FILE="Heroes-of-the-Storm-Setup-plPL.exe";;
"Korean")
EXE_FILE="Heroes-of-the-Storm-Setup-koKR.exe";;
"Chinese (Taiwan)")
EXE_FILE="Heroes-of-the-Storm-Setup-zhTW.exe";;
"Chinese (China)")
EXE_FILE="Heroes-of-the-Storm-Setup-zhCN.exe";;
*)
exit 1;;
esac
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://dist.blizzard.com/downloads/storm-installers/7C96DEC684D71DCDD4809F35F5D1E2BE/storm.1/${EXE_FILE}"
POL_Wine "$POL_System_TmpDir/${EXE_FILE}"
POL_Wine_WaitExit "$TITLE"
POL_System_TmpDelete
POL_SetupWindow_VMS "256"
POL_Wine_reboot
POL_Shortcut "Battle.net Launcher.exe" "$TITLE" "$TITLE.png" ""
POL_SetupWindow_Close
exit 0