But can you count as "last time you hit something"? Because for exemple if its a boss party nobody will kill a mob except when the boss dies. Sure maybe there will be some minions to die but most of the time the attackers will only hit the boss.
I think that once you hit a mob, and someone in your party kills it, you are practically part of that kill, therefore you won't cause the party to lose on exp. Similar to how you get more exp if you hit a mob (even for 1 damage), then let another player finish it compared to him killing it alone. The game knows you took part in that battle, so if everyone attack the boss, they are all first considered "not afk" as soon as the boss dies, then given the correct exp reward for it. But when i think of it that way, there's an issue of being able to give boss leech with incredable rates simply by striking the boss once, and being in lvl range of the killer. I believe that is a bit of a no biggi tbh but its worth looking into nontheless. I'm personally against these sort of buffs affecting bossing, because the goal is for grinding to be compareable to bossing, not to accelerate exp gain as a whole.