mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/Pet): Fixed set hunter pet's speed on load. (#15206)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user