Take this scenario:
power
Sparta123 is attacking Athen321. Thebes246 supports Athen321. They are in different alliances. Which temples' powers will affect the support from Thebes246; Thebes246's alliance's temple benefits? Or Athen321's alliance's temple benefits?