solved the battle template event issue