[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?
[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?
Archived author: Jamey • Posted: 2019-06-05T13:49:37.929000+00:00
Original source
Furthermore, that will crash if a player is attacking a player
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:49:51.652000+00:00
Original source
hm
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:50:06.665000+00:00
Original source
```cpp
if (attacker->GetTypeId() == TYPEID_PLAYER)
return damage;
```
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:50:17.314000+00:00
Original source
won't that just return the regular damage without causing any crash
Archived author: Jamey • Posted: 2019-06-05T13:51:53.135000+00:00
Original source
I missed that
Archived author: Jamey • Posted: 2019-06-05T13:51:58.674000+00:00
Original source
Anyway, better to whitelist than to blacklist
Archived author: Jamey • Posted: 2019-06-05T13:52:24.046000+00:00
Original source
```cpp
if(attacker->GetTypeId() != TYPEID_UNIT)
return damage;
```
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:52:28.948000+00:00
Original source
hmm
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:52:32.242000+00:00
Original source
alright