Implement #184. Quest: What Book? I Don't See Any Book. Fix
--HG-- branch : trunk
This commit is contained in:
@@ -463,8 +463,11 @@ struct TRINITY_DLL_DECL npc_dirty_larryAI : public ScriptedAI
|
|||||||
Attack = false;
|
Attack = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((m_creature->GetHealth()*100)/m_creature->GetMaxHealth() < 1 && !Done)
|
if ((m_creature->GetHealth()*100)/m_creature->GetMaxHealth() < 5 && !Done)
|
||||||
{
|
{
|
||||||
|
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||||
|
m_creature->RemoveAllAuras();
|
||||||
|
|
||||||
Unit* Creepjack = me->FindNearestCreature(NPC_CREEPJACK, 20);
|
Unit* Creepjack = me->FindNearestCreature(NPC_CREEPJACK, 20);
|
||||||
if (Creepjack)
|
if (Creepjack)
|
||||||
{
|
{
|
||||||
@@ -481,7 +484,6 @@ struct TRINITY_DLL_DECL npc_dirty_larryAI : public ScriptedAI
|
|||||||
Malone->GetMotionMaster()->MoveTargetedHome();
|
Malone->GetMotionMaster()->MoveTargetedHome();
|
||||||
Malone->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
Malone->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
||||||
}
|
}
|
||||||
m_creature->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
|
|
||||||
m_creature->setFaction(1194);
|
m_creature->setFaction(1194);
|
||||||
Done = true;
|
Done = true;
|
||||||
DoScriptText(SAY_GIVEUP, m_creature, NULL);
|
DoScriptText(SAY_GIVEUP, m_creature, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user