*Fixed Calvin Montague
--HG-- branch : trunk
This commit is contained in:
@@ -44,6 +44,7 @@ struct TRINITY_DLL_DECL npc_calvin_montagueAI : public ScriptedAI
|
||||
void Reset()
|
||||
{
|
||||
m_creature->setFaction(FACTION_FRIENDLY);
|
||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_ATTACKABLE_2);
|
||||
}
|
||||
|
||||
void Aggro(Unit* who) { }
|
||||
@@ -73,6 +74,7 @@ bool QuestAccept_npc_calvin_montague(Player* player, Creature* creature, Quest c
|
||||
if( quest->GetQuestId() == QUEST_590 )
|
||||
{
|
||||
creature->setFaction(FACTION_HOSTILE);
|
||||
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_ATTACKABLE_2);
|
||||
((npc_calvin_montagueAI*)creature->AI())->AttackStart(player);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user