mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 15:41:30 +00:00
[Bug Fix] Fix swarm pet names to use '_' instead of ' ' (#3601)
This commit is contained in:
parent
f395ee0508
commit
2a648507f2
@ -2266,7 +2266,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
if((spell_id != 6882) && (spell_id != 6884)) // Chaotic Jester/Steadfast Servant
|
if((spell_id != 6882) && (spell_id != 6884)) // Chaotic Jester/Steadfast Servant
|
||||||
{
|
{
|
||||||
char pet_name[64];
|
char pet_name[64];
|
||||||
snprintf(pet_name, sizeof(pet_name), "%s`s pet", caster->GetCleanName());
|
snprintf(pet_name, sizeof(pet_name), "%s`s_pet", caster->GetCleanName());
|
||||||
caster->TemporaryPets(spell_id, this, pet_name);
|
caster->TemporaryPets(spell_id, this, pet_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2443,7 +2443,7 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
|||||||
{
|
{
|
||||||
if(caster && caster->IsClient()) {
|
if(caster && caster->IsClient()) {
|
||||||
char pet_name[64];
|
char pet_name[64];
|
||||||
snprintf(pet_name, sizeof(pet_name), "%s`s doppelganger", caster->GetCleanName());
|
snprintf(pet_name, sizeof(pet_name), "%s`s_doppelganger", caster->GetCleanName());
|
||||||
int pet_count = spells[spell_id].base_value[i];
|
int pet_count = spells[spell_id].base_value[i];
|
||||||
int pet_duration = spells[spell_id].max_value[i];
|
int pet_duration = spells[spell_id].max_value[i];
|
||||||
caster->CastToClient()->Doppelganger(spell_id, this, pet_name, pet_count, pet_duration);
|
caster->CastToClient()->Doppelganger(spell_id, this, pet_name, pet_count, pet_duration);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user