mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11206] Move visibility self/around to new function and use it.
* Fixed wrong visibility changes in some cases at .mod phase uses. * Apply phase change to any owned units (not only pets as before). It also will applied in more safe way for avoid unexpected lost owner at update. * Check view point setting auras targets accessability not only at visibility change but also at phase change. * Replace SetVisibility(GetVisibility()) hack like calls.
This commit is contained in:
parent
bef47ce126
commit
f1899e3b27
6 changed files with 64 additions and 50 deletions
|
|
@ -8101,9 +8101,7 @@ void Aura::HandlePhase(bool apply, bool Real)
|
|||
else
|
||||
target->SetPhaseMask(apply ? GetMiscValue() : PHASEMASK_NORMAL, false);
|
||||
|
||||
// need triggering visibility update base at phase update of not GM invisible (other GMs anyway see in any phases)
|
||||
if(target->GetVisibility() != VISIBILITY_OFF)
|
||||
target->SetVisibility(target->GetVisibility());
|
||||
target->UpdateVisibilityAndView();
|
||||
}
|
||||
|
||||
void Aura::HandleAuraSafeFall( bool Apply, bool Real )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue