Scaling updates for non creatures and fixes for elemental damage melee

This commit is contained in:
2025-08-01 18:50:14 -04:00
parent 3f3f63f90e
commit 1b1c54782b
6 changed files with 141 additions and 137 deletions

View File

@@ -14,6 +14,25 @@ public:
// {
// }
void OnCreatureRespawn(Creature* creature) override
{
Map* map = creature->GetMap();
if (!sMythicPlus->IsMapEligible(map)) {
return;
}
if (!sMythicPlus->IsCreatureEligible(creature)) {
return;
}
// If we have instance data, scale the creature, otherwise add it to be scaled later
if (MpInstanceData* instanceData = sMpDataStore->GetInstanceData(map->GetId(), map->GetInstanceId())) {
sMythicPlus->AddScaledCreature(creature, instanceData);
} else {
sMythicPlus->AddCreatureForScaling(creature);
}
}
// void OnAllCreatureUpdate(Creature* creature, uint32 diff) override
// {
// }