mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Merge pull request #7634 from Gacko/blood_furnace
Core: Blood Furnace - Broggok event and fix OnUnitDeath hook use
This commit is contained in:
@@ -133,7 +133,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
}
|
||||
}
|
||||
|
||||
void OnCreatureDeath(Creature* unit)
|
||||
void OnUnitDeath(Unit* unit)
|
||||
{
|
||||
if (unit && unit->GetTypeId() == TYPEID_UNIT && unit->GetEntry() == 17398)
|
||||
PrisonerDied(unit->GetGUID());
|
||||
@@ -316,6 +316,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
if (!prisoner->isAlive())
|
||||
prisoner->Respawn(true);
|
||||
prisoner->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC | UNIT_FLAG_NON_ATTACKABLE);
|
||||
prisoner->GetMotionMaster()->MoveTargetedHome();
|
||||
}
|
||||
|
||||
void StorePrisoner(Creature* creature)
|
||||
|
||||
Reference in New Issue
Block a user