iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 95 forks source link

Fixed hero does not gain XP when he dies in battle issue #445 #446

Closed AL-Kateb closed 6 years ago

AL-Kateb commented 6 years ago

Fix for issue #445

velhbxtyrj commented 6 years ago

With this change, not only the living hero but also the dead heroes get experience, if they are in the tavern. That's what happens if you attack a living hero: 1 2 3

Shadowss commented 6 years ago

So should i merge ?

velhbxtyrj commented 6 years ago

If we return everything back, then the hero dying will not get any experience. If you leave everything as it is, then all heroes will get experience. This code needs to be changed differently, so that the hero would gain experience when he dies. And the deceased heroes could not get experience.