*Fix some sd2 merge errors (boss_kaelthas.cpp left).
--HG-- branch : trunk
This commit is contained in:
@@ -608,10 +608,8 @@ struct TRINITY_DLL_DECL Mob_EventAI : public ScriptedAI
|
|||||||
if (CreatureInfo const* ci = GetCreatureTemplateStore(param1))
|
if (CreatureInfo const* ci = GetCreatureTemplateStore(param1))
|
||||||
{
|
{
|
||||||
//use default display
|
//use default display
|
||||||
//TODO FIX DisplayID_A in core
|
if (ci->Modelid1)
|
||||||
/*
|
m_creature->SetDisplayId(ci->Modelid1);
|
||||||
if (ci->DisplayID_A)
|
|
||||||
m_creature->SetDisplayId(ci->DisplayID_A);*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if no param1, then use value from param2 (modelId)
|
//if no param1, then use value from param2 (modelId)
|
||||||
|
|||||||
@@ -104,8 +104,7 @@ struct TRINITY_DLL_DECL npc_draenei_survivorAI : public ScriptedAI
|
|||||||
|
|
||||||
void SpellHit(Unit *Caster, const SpellEntry *Spell)
|
void SpellHit(Unit *Caster, const SpellEntry *Spell)
|
||||||
{
|
{
|
||||||
// error: âconst struct SpellEntryâ has no member named âSpellFamilyFlags2â
|
if (Spell->SpellFamilyFlags[2] & 0x080000000)
|
||||||
/*if (Spell->SpellFamilyFlags2 & 0x080000000)
|
|
||||||
{
|
{
|
||||||
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
|
m_creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
|
||||||
m_creature->SetStandState(UNIT_STAND_STATE_STAND);
|
m_creature->SetStandState(UNIT_STAND_STATE_STAND);
|
||||||
@@ -115,7 +114,7 @@ struct TRINITY_DLL_DECL npc_draenei_survivorAI : public ScriptedAI
|
|||||||
pCaster = Caster->GetGUID();
|
pCaster = Caster->GetGUID();
|
||||||
|
|
||||||
SayThanksTimer = 5000;
|
SayThanksTimer = 5000;
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(const uint32 diff)
|
void UpdateAI(const uint32 diff)
|
||||||
|
|||||||
@@ -461,8 +461,8 @@ Aura::~Aura()
|
|||||||
//Delete references to aura
|
//Delete references to aura
|
||||||
if(GetAuraSlot() < MAX_AURAS && m_target && m_target->GetVisibleAura(GetAuraSlot()))
|
if(GetAuraSlot() < MAX_AURAS && m_target && m_target->GetVisibleAura(GetAuraSlot()))
|
||||||
{
|
{
|
||||||
AuraSlotEntry * entry = m_target->GetVisibleAura(GetAuraSlot());
|
if (AuraSlotEntry * entry = m_target->GetVisibleAura(GetAuraSlot()));
|
||||||
entry->m_slotAuras[GetEffIndex()]=NULL;
|
entry->m_slotAuras[GetEffIndex()]=NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user