mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8483] Implement glyph 43361.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
af4c9750e3
commit
e170ac3c91
2 changed files with 16 additions and 10 deletions
|
|
@ -3019,22 +3019,28 @@ void Aura::HandleAuraTransform(bool apply, bool Real)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
uint32 model_id;
|
||||||
|
|
||||||
CreatureInfo const * ci = objmgr.GetCreatureTemplate(m_modifier.m_miscvalue);
|
CreatureInfo const * ci = objmgr.GetCreatureTemplate(m_modifier.m_miscvalue);
|
||||||
if (!ci)
|
if (!ci)
|
||||||
{
|
{
|
||||||
//pig pink ^_^
|
model_id = 16358; // pig pink ^_^
|
||||||
m_target->SetDisplayId(16358);
|
|
||||||
sLog.outError("Auras: unknown creature id = %d (only need its modelid) Form Spell Aura Transform in Spell ID = %d", m_modifier.m_miscvalue, GetId());
|
sLog.outError("Auras: unknown creature id = %d (only need its modelid) Form Spell Aura Transform in Spell ID = %d", m_modifier.m_miscvalue, GetId());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
model_id = ci->DisplayID_A[0]; // Will use the default model here
|
||||||
// Will use the default model here
|
|
||||||
m_target->SetDisplayId(ci->DisplayID_A[0]);
|
|
||||||
|
|
||||||
// Dragonmaw Illusion (set mount model also)
|
// Polymorph (sheep/penguin case)
|
||||||
if(GetId()==42016 && m_target->GetMountID() && !m_target->GetAurasByType(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED).empty())
|
if (GetSpellProto()->SpellFamilyName == SPELLFAMILY_MAGE && GetSpellProto()->SpellIconID == 82)
|
||||||
m_target->SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID,16314);
|
if (Unit* caster = GetCaster())
|
||||||
}
|
if (caster->HasAura(52648)) // Glyph of the Penguin
|
||||||
|
model_id = 26452;
|
||||||
|
|
||||||
|
m_target->SetDisplayId(model_id);
|
||||||
|
|
||||||
|
// Dragonmaw Illusion (set mount model also)
|
||||||
|
if(GetId()==42016 && m_target->GetMountID() && !m_target->GetAurasByType(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED).empty())
|
||||||
|
m_target->SetUInt32Value(UNIT_FIELD_MOUNTDISPLAYID,16314);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update active transform spell only not set or not overwriting negative by positive case
|
// update active transform spell only not set or not overwriting negative by positive case
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8482"
|
#define REVISION_NR "8483"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue