|Anonymous | Login||2020-04-05 02:38 UTC|
|My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001014||VCMI||Mechanics - Battles||public||2012-06-18 08:57||2013-12-08 18:06|
|Target Version||Fixed in Version|
|Summary||0001014: Catapult can't shoot on castle gate|
|Description||I think this issue is related to the one reported before (http://bugs.vcmi.eu/view.php?id=785 [^]). Because it is marked as solved, I create this new issue.|
When choosing castle gate as the aim of catapult, then it skips its turn and shows error message. In the original HOMM3 it was possible to shoot at the gate.
Issue persists at least when attacking Conflux.
|Tags||No tags attached.|
edited on: 2012-08-20 13:34
I've tested this and it's confirmed for all castles. The error message says that there's no (catapult) curve calculated for hex 95 or 96.
There's another problem, but it is closely related to this one. You can aim with the catapult at the gate's edges (small towers near the game), even though they are supposed to be indestructible.
I've just started looking over the code, but the problem seems to be in one of these functions: isCatapultAttackable, battleGetWallUnderHex, hexToWallPart. Can't pinpoint exactly what it is.
Well, for one thing, it seems that in runBattle(), wallHexes are defined like this:
wallHexes = 50, 183, 182, 130, 62, 29, 12, 95
and in hexToWallPart() like this:
wallHexes = 50, 183, 182, 130, 62, 29, 12, 95, 96 plus the indestructable parts.
In the second one, hex 96 is added. Not sure why.
I added relation to 0000785.
But there are many more discrepancies. See 0001065. If you check the report, you'll see it seems there are even other files defining wall targets than those two wallHexes you mentioned above. At least that's how it looks like, because:
- hexes 45, 78, 112, 147 can be targeted as well, but they're missing from the files you quote
- if we hit hex 12, the turret is destroyed, but if we hit hex 183, the turret remains in place
So there seem to be multiple lists, some listing possible targets, others defining which/how should take damage, but they are not all in sync.
|This problem has been fixed in the meantime. I don't know since which version you can shoot on castle gate.|
|2012-06-18 08:57||vmonkey||New Issue|
|2012-08-19 09:03||randomed||Note Added: 0002915|
|2012-08-19 09:12||randomed||Note Edited: 0002915||View Revisions|
|2012-08-20 13:34||randomed||Note Edited: 0002915||View Revisions|
|2012-09-01 11:56||randomed||Note Added: 0002974|
|2012-09-01 21:08||Zamolxis||Relationship added||related to 0000785|
|2012-09-01 23:29||Zamolxis||Note Added: 0002975|
|2012-09-01 23:30||Zamolxis||Relationship added||child of 0001065|
|2013-12-08 18:06||beegee||Note Added: 0004171|
|2013-12-08 18:06||beegee||Status||new => resolved|
|2013-12-08 18:06||beegee||Resolution||open => fixed|
|2013-12-08 18:06||beegee||Assigned To||=> beegee|
|Copyright © 2000 - 2020 MantisBT Team|