Skip to content

Commit

Permalink
threat can not be negative (KLHThreatmeter + WoW-Wiki)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagochen authored and Fabian committed Aug 29, 2016
1 parent 15d3bc1 commit 9080af5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/ThreatManager.cpp
Expand Up @@ -101,6 +101,9 @@ void HostileReference::fireStatusChanged(ThreatRefStatusChangeEvent& pThreatRefS

void HostileReference::addThreat(float pMod)
{
if (pMod + iThreat < 0)
pMod = -iThreat;

iThreat += pMod;
// the threat is changed. Source and target unit have to be availabe
// if the link was cut before relink it again
Expand Down

0 comments on commit 9080af5

Please sign in to comment.