Fix hiding player attacks in client, add option to hide cast as well (#896)

Tiny bit of refactoring as well
This commit is contained in:
Lucwousin
2019-07-05 23:10:02 +02:00
committed by Kyleeld
parent a8cf657e4c
commit 2367f7ee18
19 changed files with 187 additions and 69 deletions

View File

@@ -36,7 +36,8 @@ public class TriBool {
signature = "(I)V",
garbageValue = "-1009406649"
)
static void method5560() {
@Export("addTargetPlayerToScene")
static void addTargetPlayerToScene() {
if (Client.combatTargetPlayerIndex >= 0 && Client.players[Client.combatTargetPlayerIndex] != null) {
WorldMapCacheName.addPlayerToScene(Client.players[Client.combatTargetPlayerIndex], false);
}