MantisBT - VCMI
View Issue Details
0000528VCMIMechanics - Battlespublic2010-07-13 10:122016-10-01 13:25
AMD 5600+WindowsXP SP3
0000528: Blind spell implemented incorrectly
1. It should work only on living creatures (and only those which don't have immunity to it or mind/all spells in general). Right now it works also on undead, elementals... probably all.

2. Any damage-inflicting attack (melee, range or damage spell) should remove Blind from the target.

3. Also, Steven mentioned in the description of 0000179 "retaliation damage is not affected either". I didn't check myself how it's implemented, but just in case, here's how it should be:
Untrained / Basic: Deactivating attack is retaliated at 50% of base attack rating.
Advanced: Deactivating attack is retaliated at 25% of base attack rating.
Expert: Deactivating attack is not retaliated.

4. Another detail to keep in mind when fixing this: If the spell is removed by a damage inflicting attack, the creature should be added to the battle queue according to its speed. If slower creatures already moved, or if we are in the 2nd part of the round (when creatures that waited move), the dispelled creature should not lose the turn. On the contrary it should then get its turn immediately.
Sir Mullich in the map attached to 0000515 has Blind, and there are enemy heroes with living/undead/elemental creatures nearby to test the functionality.
No tags attached.
related to 0000179closed Tow The Blind spell does not stop a creature getting a turn or moving. =) 
related to 0001359closed AVS Incorrect turn order in battle, related to Basilisks petrification 
has duplicate 0002351closed AVS Spells: Blind effect not disappear when creature attacked by spell 
related to 0001390closed AVS Crash in creaure window after multiple Blind / Stone gaze casts 
related to 0002266closed AVS Spell "blind", after using red color not dissappear. 
related to 0002528resolved AVS Casting damage spell on blinded unit doesn't break blindness 
Issue History
2010-07-13 10:12ZamolxisNew Issue
2010-07-13 10:12ZamolxisStatusnew => assigned
2010-07-13 10:12ZamolxisAssigned To => Tow dragon
2010-07-13 10:12ZamolxisIssue generated from: 0000179
2010-07-13 10:12ZamolxisRelationship addedrelated to 0000179
2010-07-13 10:12ZamolxisSeveritymajor => minor
2010-07-30 19:24ZamolxisDescription Updatedbug_revision_view_page.php?rev_id=1059#r1059
2012-02-27 12:22WarmongerAssigned ToTow dragon => Warmonger
2013-07-25 21:49WarmongerNote Added: 0003809
2013-07-25 21:49WarmongerRelationship addedrelated to 0001359
2013-08-01 07:04WarmongerRelationship addedrelated to 0001390
2015-09-14 16:52AVSAssigned ToWarmonger => AVS
2015-10-01 23:54AVSRelationship addedrelated to 0002266
2015-12-19 11:58SXXRelationship addedhas duplicate 0002351
2015-12-20 00:28AVSNote Added: 0006187
2016-09-29 22:30SXXRelationship addedrelated to 0002528
2016-10-01 13:25AVSNote Added: 0006792
2016-10-01 13:25AVSStatusassigned => resolved
2016-10-01 13:25AVSFixed in Version => 0.99
2016-10-01 13:25AVSResolutionopen => fixed

2013-07-25 21:49   
#1 was already fixed in r3466.
2015-12-20 00:28   
From 0002351:

Blind spell must disappear if creature get any damage, but currently when you hit blinded creature with targeted or splash spell it's not disappear.
2016-10-01 13:25   
all 4 points has been implemeted