Skip to content

Commit

Permalink
Another rogue stealth tweak.
Browse files Browse the repository at this point in the history
Another rogue stealth tweak.
-- Credit to Magic
  • Loading branch information
Necrovoice authored and billy1arm committed Feb 7, 2017
1 parent 0cd70c2 commit daff894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Object/Unit.cpp
Expand Up @@ -7313,7 +7313,7 @@ bool Unit::IsVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo
// Calculation if target is in front

// Visible distance based on stealth value (stealth rank 4 300MOD, 10.5 - 3 = 7.5)
visibleDistance = 10.5f - (GetTotalAuraModifier(SPELL_AURA_MOD_STEALTH) / 100.0f);
visibleDistance = (10.5f - (GetTotalAuraModifier(SPELL_AURA_MOD_STEALTH) / 100.0f)) /2;

// Visible distance is modified by
//-Level Diff (every level diff = 1.0f in visible distance)
Expand Down

0 comments on commit daff894

Please sign in to comment.