Looking over the source code, the problem may exist due to the change in name regarding the phalanx to hoplite with the new server updates. Due to that, the script cannot function correctly because when it searches for the 'phalanx' soldier (and fails) it returns the NaN by default. The NaN was returned previously only when a fellow alliance member was stationed in your town because that was not written into the code to include foreign support. Now this is all speculation, but I feel this is why the problem exists after looking over the source code for this script. Hopefully, Ikariam source writers will fix this to include the new server updates.
<(^_^<) ^(^_^)^ Darkduler315 ^(^_^)^ (>^_^)>