fix(Core/Pet): Fixed set hunter pet's speed on load. (#15206)

This commit is contained in:
UltraNix
2023-03-04 21:41:10 +01:00
committed by GitHub
parent d68913d1df
commit ac0581bd43
3 changed files with 18 additions and 17 deletions

View File

@@ -1048,6 +1048,11 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
else if (petType != SUMMON_PET)
LOG_ERROR("entities.pet", "Unknown type pet {} is summoned by player class {}", GetEntry(), owner->getClass());
}
if (petType == HUNTER_PET || petType == SUMMON_PET)
{
SetSpeed(MOVE_RUN, 1.15f);
}
}
uint32 creature_ID = (petType == HUNTER_PET) ? 1 : cinfo->Entry;