New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues/2304/2418 #197
Issues/2304/2418 #197
Conversation
…s clone when killed.
So first problem is that we can't handle summoned creatures exactly as clones because it's breaking one-elemental limit check. Since stack disappear we can no longer check if there was creature summoned or no. Related issue: There also related not implemented feature. H3 had special limit of how many stacks could ever fight for one side on battlefield which is 20 stacks. So it's another reason to make some storage for all stacks. |
20 stack limit actually made WoG crash in some scenarios and in general was troublesome. I don't think we need to impose it, it has no impact in OH3 - but could give additional possibilities in mods. |
We can, but just do not delete them. Will do this way. |
@DjWarmonger I didn't mean that we must enforce it by default, but we still need to have options that make VCMI behaviour as close to H3 as possible. And some limit is totally reasonable from balance standpoint anyway. |
* exclude ghost stacks from (hopefully all) get* results for now
@ArseniyShestakov it is even possible with current mechanics to have more than 20 stacks on one side without mods? |
Idea is that 20 is total limit of stacks, not just alive one. 7 stacks is your army, up to 3 war machines. |
|
Maybe mechanical limit makes sense in cases like the one here: https://www.youtube.com/watch?v=tuy_ncoBhGM |
@dydzio0614 @ArseniyShestakov Anyway, 20 stack limit is off-topic here. |
So at moment elemental summon is broken if you already had clone. Also probably we need to keep in mind that you may first cast clone on "real" elemental and then summon one. |
Another problem with current code: clones remain visible after original stack is killed. You can't control them though so they look like inactive bitmap. E.g hex is also passable so looks like some rendering issue. |
This will allow client to receive notification.
Feature and re-factoring freeze. |
So now clone stacks disappear only when round is ended so you can able to do weird things with corpse before they disappear. E.g resurrect stack with 0 creatures in it. |
So it's works now. Though there is small text bug: Repro:
So similar to issue 2293. |
Everything else looks fine so we can merge it if text bug can be fixed later on together with one I mentioned. |
Yes, "Gnoll" glitch is same code as 2293, but different bug. However "Gnoll" glitch is a regression so I`ll fix it and may be also 2293 here. |
So I think it's fixed! May be it's time to merge it. |
Since it's easier to put feedback via pull requests here we go:
http://bugs.vcmi.eu/view.php?id=2304
http://bugs.vcmi.eu/view.php?id=2418