MantisBT - VCMI
View Issue Details
0002095VCMIMechanics - Adventure Mappublic2015-02-18 12:182016-04-07 13:44
Povelitel 
SXX 
normalminoralways
closedfixed 
0.97b 
0.98f 
0002095: If artifact have inner guard and hero try take him - instant attack. Not have dialog want you battle or not
screen
No tags attached.
png Art.PNG (44,339) 2015-02-18 12:18
https://bugs.vcmi.eu/file_download.php?file_id=2118&type=bug
png
Issue History
2015-02-18 12:18PovelitelNew Issue
2015-02-18 12:18PovelitelFile Added: Art.PNG
2015-11-25 07:33SXXAssigned To => SXX
2015-11-25 07:33SXXStatusnew => assigned
2015-11-28 19:11SXXNote Added: 0006127
2015-12-24 15:03SXXNote Added: 0006211
2015-12-24 15:10SXXNote Added: 0006212
2015-12-24 18:14SXXNote Added: 0006215
2015-12-24 18:14SXXStatusassigned => resolved
2015-12-24 18:14SXXFixed in Version => 0.98f
2015-12-24 18:14SXXResolutionopen => fixed
2016-04-07 13:44PovelitelStatusresolved => closed

Notes
(0006127)
SXX   
2015-11-28 19:11   
So it's actual H3 behaviour:
 - Artifact with guards always have dialog that tell you who's guarding it.
 - Guarded resources never have dialog, instant attack.
(0006211)
SXX   
2015-12-24 15:03   
One more important addition on why this problem likely appear:
- Spell scrolls work different, not like normal artifacts. E.g when artifact have no custom message it's just show who's guarding it, but in case of spell scroll you going to be instantly attacked if there no message set.

This is likely inconsistency that was reason behind this incorrect behaviour.
(0006212)
SXX   
2015-12-24 15:10   
So one more detail: guarded resource have same behaviour as spell scroll.
If there custom message there is dialog and if there no message then it's instant attack.
(0006215)
SXX   
2015-12-24 18:14   
Fixed:
https://github.com/vcmi/vcmi/commit/62bab27e7eae76753ec15f2db084c26f91ffdef8 [^]