Maybe a stupid question, but do stat bonuses from being a general/commander in GvG work when I am attacking, or do they only work when out guild is attacked?

I joined some S ranked guild. But apart from really random occasions, I am basically the only one doing anything. Guild creator is online so he could maybe give me one of commanders to make my attacking job issuer if buffs work when attacking too.

Thou this GvG stuff is kinda annoying, when you get put against few dead guilds (or with 1 active person like my guild), and then your rating I assume go up so much, that you get put vs active guilds where multiple people per guild do stuff, and then for each my attack enemy guilds do enough attack on us that we lose more points than I earn via that single attack - nothing to do but just give up at that point cause we will be last anyway at such situations.