[Core\Quest] Fix Quest "The Aspirant's Challenge"
Credits goes to Valcorb
This commit is contained in:
@@ -169,8 +169,7 @@ enum eArgentValiant
|
|||||||
{
|
{
|
||||||
SPELL_CHARGE = 63010,
|
SPELL_CHARGE = 63010,
|
||||||
SPELL_SHIELD_BREAKER = 65147,
|
SPELL_SHIELD_BREAKER = 65147,
|
||||||
|
SPELL_KILL_CREDIT = 63049
|
||||||
NPC_ARGENT_VALIANT_CREDIT = 24108
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class npc_argent_valiant : public CreatureScript
|
class npc_argent_valiant : public CreatureScript
|
||||||
@@ -208,7 +207,7 @@ public:
|
|||||||
if (uiDamage > me->GetHealth() && pDoneBy->GetTypeId() == TYPEID_PLAYER)
|
if (uiDamage > me->GetHealth() && pDoneBy->GetTypeId() == TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
uiDamage = 0;
|
uiDamage = 0;
|
||||||
CAST_PLR(pDoneBy)->KilledMonsterCredit(NPC_ARGENT_VALIANT_CREDIT, 0);
|
pDoneBy->CastSpell(pDoneBy, SPELL_KILL_CREDIT, true);
|
||||||
me->setFaction(35);
|
me->setFaction(35);
|
||||||
me->DespawnOrUnsummon(5000);
|
me->DespawnOrUnsummon(5000);
|
||||||
me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
|
me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
|
||||||
|
|||||||
Reference in New Issue
Block a user