-use Damage formula to calculate damage when searching for targets
-don't auto attack invulnerable units
-attack wall only if unit is near to it
-units controlled by player now are able to switch targets when attacked
-fixed casting spells on attacking units
-increased priority for targets that are able to retalliate
[+] Ability to return goods to allied depots
[+] Added FiredSound property for MissileType
[-] Fixed possible crash when trying to place units in editor
[-] Fixed crash for pience missiles which are gone outside of map
[-] Fixed crash when saving invalid order
[-] Fixed crash when changing owner for dead unit
[-] Don't help to summoned units for AI
[*] More correct grayscale formula
[-] Fixed crash wheh program can't read file in debug mode
[-] Fixed crash with spawn-missile when target unit is dead
[-] Fixed crash then CUnit::TTL killing dead unit
[+] Added poison damage which will slowly drain health for POISON_INDEX tics.
[+] Aility to change values in animation "set-var" by percent.
[+] Added LuaToUnsignedNumber for correct handling full unsigned ints.
[*] Smoke missiles take their heading angle from main missile.
[*] Correct handling for Warcraft 2 timed spells and health loss for time-to-live ability : the values change every cycle, not every second
[-] Fixed missing file in previous commit
[-] Fixed bug when player cancels a building.
[-] Fixed bug with speedup variables in CclGetPlayerData and CclSetPlayerData
[+] Added NoRandomPlacing flag in CUnitType to prevent random sprite rotation.
[+] Added BoxOffsetX and BoxOffsetY in CunitType to move selection box around unit.
[+] Abilty to set missile's damage and TTL directly in MissileType
[+] Allow CAnimation_SetVar to change non-CVariable variables (currently works for DamageType)
[+] Added ButtonCheckUnitVariable which allow to show button only if some variables pass the condition.
[+] More flexibility to particles.
[+] Added ninth button to PieMenu.
[+] Added ability to set text color in butrton popups.
[+] Allow CAnimation_SpawnMissile to fire missile at some position instead of unit.
[*] Clean up in UnitOnScreen
[*] Units first call their auto-cast spells rather than attacking.
[*] Change new unit message minimap ping color to green.
[*] Some changes in ai threat calculation code.
[*] Units won't "follow" after buildings (this caused them to "stop" and do nothing)
[*] Set GLMaxTextureSize to 256
[-] Removed hardcoded upgrade-to frame
[-] Fix incorrect AiBuildingRules check.
[-] Fix incorrect CUnitType impacts parse
[-] Fixed bug which made AI's summoned units to be in group 0 and thus didn't allowed them o attack enemies properly.
[-] Fixed bug which not allowed player to save his replay at the end of mission.
[-] Fixed a bug which caused AI to send his defence forces only once.
[-] Removed assert warning in AiReduceMadeInBuilt
[+] Make particles more configurable from Lua
[+] Added 'g' flag for ParseAnimInt to get flag for target unit
[+] Added MissileOffsets array which allows more correct placing for missile's starting point (not from unit's center, but from cannon's hole etc.)
[+] Added CclGetUnitBoolFlag to get unit's bool-flags in Lua
[+] Removed speedup variables (SpeedResourcesHarvest, SpeedResourcesReturn, SpeedBuild, SpeedTrain, SpeedUpgrade, SpeedResearch) into player's code, now speedup could be set individually for each player
[+] Added CUpgradeModifier::ModifyPercent for modifying variables by percent, not by const value.
[+] Added MissileType::Pierce to allow missiles damage everything on their way
[+] Added map preview image generation function for editor (not ready for OpenGL yet)
[+] Added flag for CclCreateMissile to control missile's damage
[*] Missiles now fly into unit's center (according to the comment in code, the old behaviour was to be used for bunkers)
[-] Fixed random number generation code in animations
[-] Fixed "Flushing removed unit" message for boarded units
[-] Fixed unit death into container (happens when unit is temporary)
[-] Fixed land-only restriction for transporters
[-] Fixed "spell-cast" mouse action for non-enemy units (now it's possible to use this action for medics)
[-] Fixed compilation for MSVC9