mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[10926] Remove player-only limit for HandleAuraTransform where miscvalue is 0
Add error output for unhandled spells plus minor code cleanup Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
6a8f83379f
commit
1031f3b5d2
2 changed files with 11 additions and 14 deletions
|
|
@ -3139,14 +3139,9 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
|||
// special case (spell specific functionality)
|
||||
if (m_modifier.m_miscvalue == 0)
|
||||
{
|
||||
// player applied only
|
||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
switch (GetId())
|
||||
{
|
||||
// Orb of Deception
|
||||
case 16739:
|
||||
case 16739: // Orb of Deception
|
||||
{
|
||||
uint32 orb_model = target->GetNativeDisplayId();
|
||||
switch(orb_model)
|
||||
|
|
@ -3195,10 +3190,10 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
|||
}
|
||||
break;
|
||||
}
|
||||
// Murloc costume
|
||||
case 42365: target->SetDisplayId(21723); break;
|
||||
// Honor the Dead
|
||||
case 65386:
|
||||
case 42365: // Murloc costume
|
||||
target->SetDisplayId(21723);
|
||||
break;
|
||||
case 65386: // Honor the Dead
|
||||
case 65495:
|
||||
{
|
||||
switch(target->getGender())
|
||||
|
|
@ -3213,7 +3208,9 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
|||
}
|
||||
break;
|
||||
}
|
||||
default: break;
|
||||
default:
|
||||
sLog.outError("Aura::HandleAuraTransform, spell %u does not have creature entry defined, need custom defined model.", GetId());
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10925"
|
||||
#define REVISION_NR "10926"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue