Added Artificial Intelligence for Hero during Attack on CW or regular Raid Attack
Heroes are strong and must be also intelligent enough during attack. Here are some of my suggestions to further improve our heroes.
1) Hero must be always alert. Hero must have passive dodging skill, for example added maximum of 5% chance of dodging against mortar, 3% against archer towers, 2% against cannons and only 1% against the other defense towers (wizard tower, hidden tesla, inferno and x-bow) because they fire faster. This will be available and increase as heroes ability level up. Example: If Barbarian King has level 2 Iron fist, his capability of dodging will have max increase of 2%, 3% for level 3 and so on.
2) Hero must have chance of 5% critical strike against defense buildings starting at hero level 5. This will increase as hero level increase.
3) Hero must be agressive. When spawned, hero will run into its first target to show hunger for destruction and victory. So spawn first other troops before your hero.
4) When hero is targeting walls to penetrate, it should look for the nearest damaged walls. In this case, he/she will behave like wallbreakers when dealing with walls.
5) Hero must be time conscious. Hero should not waste time attacking walls when its target behind the walls has been destroyed. It should look for another target immediately.
6) Hero must learn team work. When a hero is walking and looking for a new target, it should also consider finding an offensive advantage. When it detects a nearest group of troops (3 to 5 troops) attacking the same defensive structure, it must join with them.
7) Hero must be aware of victory. Like other troops having favorite target, hero's favorite target must be victory. When enemy's townhall is within its attacking range, and when their are no blocking walls and defensive structures within its reach, hero must engage immediately into the townhall to destroy it and then after that will destroy the rest of enemy's structures.
8) Hero's power and strenght must be only for destroying defensive structure, walls and townhall. Therefore: army camps, barracks & dark barracks, builder's huts, laboratory, spell factory, storages and resources collectors are the least priorities of heroes. Other attacking troops will do their role to destroy these structures.