Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] well if a player dies they get cleared from the threat list dont they?

[DiscordArchive] well if a player dies they get cleared from the threat list dont they?

[DiscordArchive] well if a player dies they get cleared from the threat list dont they?

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
12-22-2022, 12:43 AM
#1
Archived author: Anchy • Posted: 2022-12-22T00:43:30.856000+00:00
Original source

well if a player dies they get cleared from the threat list dont they?
rektbyfaith
12-22-2022, 12:43 AM #1

Archived author: Anchy • Posted: 2022-12-22T00:43:30.856000+00:00
Original source

well if a player dies they get cleared from the threat list dont they?

rektbyfaith
Administrator
0
12-22-2022, 12:43 AM
#2
Archived author: Anchy • Posted: 2022-12-22T00:43:34.519000+00:00
Original source

so just run the same code again
rektbyfaith
12-22-2022, 12:43 AM #2

Archived author: Anchy • Posted: 2022-12-22T00:43:34.519000+00:00
Original source

so just run the same code again

rektbyfaith
Administrator
0
12-22-2022, 12:43 AM
#3
Archived author: Anchy • Posted: 2022-12-22T00:43:53.913000+00:00
Original source

but inside of the remove hook instead of the add hook
rektbyfaith
12-22-2022, 12:43 AM #3

Archived author: Anchy • Posted: 2022-12-22T00:43:53.913000+00:00
Original source

but inside of the remove hook instead of the add hook

rektbyfaith
Administrator
0
12-22-2022, 12:45 AM
#4
Archived author: Rymercyble • Posted: 2022-12-22T00:45:26.065000+00:00
Original source

yes but i dont want to scale it down if some1 dies
rektbyfaith
12-22-2022, 12:45 AM #4

Archived author: Rymercyble • Posted: 2022-12-22T00:45:26.065000+00:00
Original source

yes but i dont want to scale it down if some1 dies

rektbyfaith
Administrator
0
12-22-2022, 12:45 AM
#5
Archived author: Rymercyble • Posted: 2022-12-22T00:45:34.826000+00:00
Original source

actually i dont remember how it works on retail if it also scales down
rektbyfaith
12-22-2022, 12:45 AM #5

Archived author: Rymercyble • Posted: 2022-12-22T00:45:34.826000+00:00
Original source

actually i dont remember how it works on retail if it also scales down

rektbyfaith
Administrator
0
12-22-2022, 12:58 AM
#6
Archived author: Rymercyble • Posted: 2022-12-22T00:58:37.443000+00:00
Original source

```cpp
if (count > 1) {
std::int_fast64_t max_hp = hostileRef->GetOwner()->GetMaxHealth();
std::int_fast64_t current_hp = hostileRef->GetOwner()->GetHealth();

auto ratio = sConfigMgr->GetOption<float>("Mellian.ratio", .2f);

hostileRef->GetOwner()->SetMaxHealth(max_hp + (max_hp * (count - 1) * ratio));
hostileRef->GetOwner()->SetHealth(current_hp + (current_hp * (count - 1) * ratio));
}
```
thats so trivial it seems too good to be true
rektbyfaith
12-22-2022, 12:58 AM #6

Archived author: Rymercyble • Posted: 2022-12-22T00:58:37.443000+00:00
Original source

```cpp
if (count > 1) {
std::int_fast64_t max_hp = hostileRef->GetOwner()->GetMaxHealth();
std::int_fast64_t current_hp = hostileRef->GetOwner()->GetHealth();

auto ratio = sConfigMgr->GetOption<float>("Mellian.ratio", .2f);

hostileRef->GetOwner()->SetMaxHealth(max_hp + (max_hp * (count - 1) * ratio));
hostileRef->GetOwner()->SetHealth(current_hp + (current_hp * (count - 1) * ratio));
}
```
thats so trivial it seems too good to be true

rektbyfaith
Administrator
0
12-22-2022, 01:03 AM
#7
Archived author: Anchy • Posted: 2022-12-22T01:03:59.329000+00:00
Original source

seems right to me
rektbyfaith
12-22-2022, 01:03 AM #7

Archived author: Anchy • Posted: 2022-12-22T01:03:59.329000+00:00
Original source

seems right to me

rektbyfaith
Administrator
0
12-22-2022, 01:04 AM
#8
Archived author: Anchy • Posted: 2022-12-22T01:04:45.348000+00:00
Original source

Don't forget to send an Update
rektbyfaith
12-22-2022, 01:04 AM #8

Archived author: Anchy • Posted: 2022-12-22T01:04:45.348000+00:00
Original source

Don't forget to send an Update

rektbyfaith
Administrator
0
12-22-2022, 01:05 AM
#9
Archived author: Anchy • Posted: 2022-12-22T01:05:00.218000+00:00
Original source

I think it's UpdateStats()
rektbyfaith
12-22-2022, 01:05 AM #9

Archived author: Anchy • Posted: 2022-12-22T01:05:00.218000+00:00
Original source

I think it's UpdateStats()

rektbyfaith
Administrator
0
12-22-2022, 01:13 AM
#10
Archived author: Rymercyble • Posted: 2022-12-22T01:13:22.001000+00:00
Original source

i added `UpdateAllStats()` at end of method although it was working even without it
rektbyfaith
12-22-2022, 01:13 AM #10

Archived author: Rymercyble • Posted: 2022-12-22T01:13:22.001000+00:00
Original source

i added `UpdateAllStats()` at end of method although it was working even without it

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)