[DiscordArchive] Wait, from the client ?
[DiscordArchive] Wait, from the client ?
Archived author: Thiaz • Posted: 2022-12-21T15:12:20.776000+00:00
Original source
Ok, i'll try
Archived author: Rymercyble • Posted: 2022-12-21T15:12:48.473000+00:00
Original source
i mean u pointed me to addThreat method so im just confused why are u talking about AI now
Archived author: robinsch • Posted: 2022-12-21T15:15:48.671000+00:00
Original source
language barrier I guess
Archived author: Rymercyble • Posted: 2022-12-21T15:16:15.486000+00:00
Original source
maybe
Archived author: Rymercyble • Posted: 2022-12-21T15:17:13.866000+00:00
Original source
i think best will be if i find place (if such exists) where it would trigger only once when player attacks npc for first time
Archived author: robinsch • Posted: 2022-12-21T15:19:08.780000+00:00
Original source
Yes when HostileReference is build in _AddThreat as I mentioned before
Archived author: Rymercyble • Posted: 2022-12-21T15:22:11.543000+00:00
Original source
hmm maybe u meant to do it here ?
```cpp
HostileReference* ThreatContainer::AddThreat(Unit* victim, float threat)
{
HostileReference* ref = getReferenceByTarget(victim);
if (ref)
ref->AddThreat(threat);
return ref;
}
```
instead of `void ThreatMgr::_addThreat(Unit* victim, float threat)`
Archived author: robinsch • Posted: 2022-12-21T15:22:33.475000+00:00
Original source
Nope
Archived author: Rymercyble • Posted: 2022-12-21T15:22:41.835000+00:00
Original source
https://tenor.com/view/clueless-aware-tw...f-25354609
Archived author: Thiaz • Posted: 2022-12-21T15:23:07.296000+00:00
Original source
Well it's only 1 param, it's BG index, 1 is RandomBG, above it's BattlegroundIDs (up to #GetNumBattlegroundTypes() ) so it's tagging specific. But it doesn't influence it's it's BG or Arena.