mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19: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)
|
// special case (spell specific functionality)
|
||||||
if (m_modifier.m_miscvalue == 0)
|
if (m_modifier.m_miscvalue == 0)
|
||||||
{
|
{
|
||||||
// player applied only
|
|
||||||
if (target->GetTypeId() != TYPEID_PLAYER)
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (GetId())
|
switch (GetId())
|
||||||
{
|
{
|
||||||
// Orb of Deception
|
case 16739: // Orb of Deception
|
||||||
case 16739:
|
|
||||||
{
|
{
|
||||||
uint32 orb_model = target->GetNativeDisplayId();
|
uint32 orb_model = target->GetNativeDisplayId();
|
||||||
switch(orb_model)
|
switch(orb_model)
|
||||||
|
|
@ -3195,10 +3190,10 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Murloc costume
|
case 42365: // Murloc costume
|
||||||
case 42365: target->SetDisplayId(21723); break;
|
target->SetDisplayId(21723);
|
||||||
// Honor the Dead
|
break;
|
||||||
case 65386:
|
case 65386: // Honor the Dead
|
||||||
case 65495:
|
case 65495:
|
||||||
{
|
{
|
||||||
switch(target->getGender())
|
switch(target->getGender())
|
||||||
|
|
@ -3213,7 +3208,9 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: break;
|
default:
|
||||||
|
sLog.outError("Aura::HandleAuraTransform, spell %u does not have creature entry defined, need custom defined model.", GetId());
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10925"
|
#define REVISION_NR "10926"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue