- Joined
- Feb 27, 2019
- Messages
- 401
Edit: solution in the following post Detect Game Version (GetPatchLevel)
Hello,
I just discovered that my map works fine with Warcraft III 1.30.4, but not with Warcraft III 1.31. The problem is on function "Unit - set base damage", aka BlzSetUnitBaseDamage in JASS. I use it to increase the base damage of the 1st weapon of my unit.
But:
- In Warcraft 1.30 weapons are 1-indexed (weapon 1, weapon 2)
- In Warcraft 1.31 weapons are 0-indexed (weapon 0, weapon 1)
And Blizzard doesn't have the intelligence of doing the conversion.
So I can't have it to work at the same time for 1.30.4 and 1.31...
...Unless I can detect what version of warcraft III is running ??
Is that possible ? If yes, could you please explain me how you do that ? ^^
Hello,
I just discovered that my map works fine with Warcraft III 1.30.4, but not with Warcraft III 1.31. The problem is on function "Unit - set base damage", aka BlzSetUnitBaseDamage in JASS. I use it to increase the base damage of the 1st weapon of my unit.
But:
- In Warcraft 1.30 weapons are 1-indexed (weapon 1, weapon 2)
- In Warcraft 1.31 weapons are 0-indexed (weapon 0, weapon 1)
And Blizzard doesn't have the intelligence of doing the conversion.
So I can't have it to work at the same time for 1.30.4 and 1.31...
...Unless I can detect what version of warcraft III is running ??
Is that possible ? If yes, could you please explain me how you do that ? ^^
Last edited: