Commit Graph

3469 Commits

Author SHA1 Message Date
novgorodschi catalin 853d4dcecb Add hero header & Auction image tribe 2026-08-10 16:20:36 +03:00
novgorodschi catalin 1ecbba0e26 Some fix and add protected players
Some fix and add protected players
2026-08-10 12:37:56 +03:00
novgorodschi catalin d325fce01f Some important fix 2026-08-10 10:34:49 +03:00
novgorodschi catalin da58de16b4 Some important fixes
Some important fixes
2026-08-10 09:08:09 +03:00
Catalin Novgorodschi 2095a59b7e @Ferywir fix 2026-08-09 20:56:01 +03:00
Ferywir 91a980fa3d fix(combat): keep the hero casualty when rams force a battle recalculation [#372] (#373)
When rams change the wall level, applyRamDamage() replays the whole battle
through calculateBattle(). That helper WRITES to the hero table, so the replay
applied the hero damage a second time: applyHeroBattleDamage() only looks up
heroes with dead = 0, so the hero who had just died on the first pass was no
longer found, the call returned null and casualties_attacker[11] was never set.

Consequences, all visible in the screenshots of the issue: the report showed the
hero alive and "gained XP" instead of "died", modifyAttack3() never decremented
t11, and returnunitsComplete() added the hero back to units.hero - a hero dead in
the hero table but still displayed in dorf1 and in the rally point. Defender
heroes were also charged their health damage twice.

calculateBattle() now takes an optional $previousHeroOutcome: when the caller
hands over the first pass result, the hero damage is not applied again and the
first verdict (attacker / defender / reinforcement heroes) is carried over.

Also:
- drop the temporary [TravianZ][EROU] error_log() debug traces;
- 37_revive.tpl: only render a revive row for a hero that is actually dead
  (the revive action itself was already gated on dead = 1).

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Catalin Novgorodschi <cata7007@gmail.com>
2026-08-09 20:20:37 +03:00
novgorodschi catalin 770fa9fd6b Fix some bugs 2026-08-09 19:37:51 +03:00
novgorodschi catalin 4f93cb52a2 Some final fix 2026-08-09 16:14:01 +03:00
Catalin Novgorodschi 935d8939cd Update Artifacts.php 2026-08-09 09:22:43 +03:00
novgorodschi catalin 14886294f0 fix 2026-08-09 07:48:36 +03:00
novgorodschi catalin 49fd8e8982 tix hero 2026-08-08 20:45:23 +03:00
novgorodschi catalin 3b305d85c4 fix hero 2026-08-08 19:16:17 +03:00
novgorodschi catalin 6980a9ac44 fix #372 2026-08-08 11:40:54 +03:00
novgorodschi catalin 31506338bd Winner update
Winner update
2026-08-07 11:30:15 +03:00
novgorodschi catalin 46aaeb559a Fix something gpack
Fix something gpack
2026-08-07 08:21:56 +03:00
novgorodschi catalin 4d74c38f5b Change tribe 2026-08-07 08:19:29 +03:00
sinfrecu e410a6794f Update quality spartans and add Vikings (#370) 2026-08-07 07:56:52 +03:00
Didiboo ec312bfb13 Add blue color to .adv class in movements table (#369)
For T3 graphics
2026-08-07 07:56:13 +03:00
Didiboo 0932e561c0 Add blue color to .adv class in movements table (#368)
For T4 Graphics
2026-08-07 07:55:56 +03:00
Didiboo 66a9017055 Active new color for adventure (#367) 2026-08-07 07:55:40 +03:00
sinfrecu 210feb0dd2 Update images and fix positioning (#366) 2026-08-06 06:37:57 +03:00
novgorodschi catalin 5e2d1f9958 Fix #364
Fix #364
2026-08-05 14:45:18 +03:00
novgorodschi catalin 077708ef84 Fix autocomplete
Fix autocomplete
2026-08-05 14:14:10 +03:00
novgorodschi catalin dcb9311f4c Fix [#WALLMASTER] for new tribe
Fix [#WALLMASTER] for new tribe
2026-08-05 14:07:25 +03:00
novgorodschi catalin 72a2365d17 Fix bug autocomplete
Fix bug autocomplete
2026-08-05 13:59:24 +03:00
novgorodschi catalin 146b96907c Audit Plus folder & Add Credits
Audit Plus folder & Add Credits
2026-08-05 13:51:47 +03:00
novgorodschi catalin 9084350e01 Fix and Notice
Fix and Notice
2026-08-05 12:03:09 +03:00
novgorodschi catalin ae2d835a84 Important security fix
Important security fix
2026-08-05 10:39:38 +03:00
novgorodschi catalin 94f5593f22 Fix alliance XSS desc
Fix alliance XSS desc
2026-08-05 10:30:33 +03:00
novgorodschi catalin b21f60c2b1 Some important fixes
Some important fixes
2026-08-05 10:21:53 +03:00
novgorodschi catalin b2dec1d942 Fix some sql inject & Add Credits
Fix some sql inject & Add Credits
2026-08-05 09:57:35 +03:00
novgorodschi catalin f424733dd8 Black only black
Black only black
2026-08-05 09:02:49 +03:00
novgorodschi catalin 49d01be51e Fix alliance view in ACP
Fix alliance view in ACP
2026-08-05 08:56:29 +03:00
novgorodschi catalin c3d96be4a7 gpack update
gpack update
2026-08-05 08:41:59 +03:00
novgorodschi catalin b79ee61855 Fix max donation Alliance Bonuses
Fix max donation Alliance Bonuses - cannot donate over max
2026-08-04 11:05:54 +03:00
novgorodschi catalin 3946603591 Translate into english
Translate into english
2026-08-04 10:15:13 +03:00
novgorodschi catalin e5d9f9c0a4 Just Natar Capital
Just Natar Capital
2026-08-04 09:50:03 +03:00
novgorodschi catalin a584c68153 Fix Huns Loiality Regeneration & WW cannot be change to capital
Fix Huns Loiality Regeneration & WW cannot be change to capital
2026-08-04 09:40:41 +03:00
novgorodschi catalin 2972556067 Part of es translation
Part of es translation
2026-08-04 09:25:46 +03:00
novgorodschi catalin 98b3b99007 Add spanish language
Add spanish language
2026-08-04 09:19:05 +03:00
novgorodschi catalin 62be19a0fe Add part of spanish language
Add part of spanish language
2026-08-04 09:08:59 +03:00
novgorodschi catalin 74c9883e27 Some backup solution
Some backup solution
2026-08-04 08:56:14 +03:00
novgorodschi catalin 72b3886d5e New Artwork. Thanks @sinfrecu
New Artwork. Thanks @sinfrecu
2026-08-04 08:11:00 +03:00
novgorodschi catalin 10fb3beb0d add ww tribe image
add ww tribe image
2026-08-04 07:54:47 +03:00
novgorodschi catalin 242fdd959f Fix tribe edit
Fix tribe edit
2026-08-03 14:44:25 +03:00
novgorodschi catalin eb441d7ec1 Remove dead code
Remove dead code
2026-08-03 14:35:12 +03:00
novgorodschi catalin efc9eb8b25 Fallback fix server
Fallback fix server
2026-08-03 14:34:09 +03:00
novgorodschi catalin 7c75cde78e Some fixes
Some fixes
2026-08-03 13:27:00 +03:00
novgorodschi catalin b515aeab47 Rearange items in Hero Page
Rearange items in Hero Page
2026-08-03 12:58:18 +03:00
novgorodschi catalin f72d47e8be Another translate in english
Another translate in english
2026-08-03 09:48:31 +03:00