[DiscordArchive] Hi everyone !
[DiscordArchive] Hi everyone !
Archived author: leonis35 • Posted: 2023-07-15T17:30:57.357000+00:00
Original source
Well and how should i make it ?
Archived author: Tea • Posted: 2023-07-15T17:34:20.745000+00:00
Original source
im pretty sure client needs those to be signed
Archived author: jackpoz • Posted: 2023-07-15T18:01:19.096000+00:00
Original source
<#870722120458600528> for client edits
Archived author: leonis35 • Posted: 2023-07-15T18:06:08.854000+00:00
Original source
Well don't worry, i have solved the problem, i will show you its free
On Unit.cpp, find the float "GetTotalAttackPowerValue".
Then find this line (9309 for me) :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
and replace by :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
Do the same 5 line above.
With this, if your attackpower excced 32767 the client display 0 but the core calculate the correct value, and your damage done are correct.