mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
@@ -204,7 +204,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (zombie->IsAlive())
|
if (zombie->IsAlive())
|
||||||
{
|
{
|
||||||
int32 reduceHp = int32(zombie->GetMaxHealth() * 0.05f);
|
uint32 reduceHp = uint32(zombie->GetMaxHealth() * 0.05f);
|
||||||
if (zombie->GetHealth() > reduceHp)
|
if (zombie->GetHealth() > reduceHp)
|
||||||
zombie->SetHealth(reduceHp); // Reduce HP to 5%
|
zombie->SetHealth(reduceHp); // Reduce HP to 5%
|
||||||
zombie->SetWalk(true); // Set to walk
|
zombie->SetWalk(true); // Set to walk
|
||||||
|
|||||||
@@ -1363,7 +1363,7 @@ public:
|
|||||||
return new gobject_naxx40_teleAI(object);
|
return new gobject_naxx40_teleAI(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OnGossipHello(Player* player, GameObject* go) override
|
bool OnGossipHello(Player* player, GameObject* /*go*/) override
|
||||||
{
|
{
|
||||||
if ((!sIndividualProgression->requireNaxxStrath || player->GetQuestStatus(NAXX40_ENTRANCE_FLAG) == QUEST_STATUS_REWARDED) && isAttuned(player))
|
if ((!sIndividualProgression->requireNaxxStrath || player->GetQuestStatus(NAXX40_ENTRANCE_FLAG) == QUEST_STATUS_REWARDED) && isAttuned(player))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user