mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 22:37:04 +00:00
[12036] Fix Tauren Skin Tone Changeing at barbershop
Patch taken from insider's repo. Also rename DoSummon function to DoSummonPet function. Signed-off-by: stfx <stfx@hotmail.de> Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
7682400a1f
commit
6e8111261c
6 changed files with 33 additions and 17 deletions
|
|
@ -4846,7 +4846,7 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx)
|
|||
if(prop_id == 1562) // 3 uncontrolable instead of one controllable :/
|
||||
DoSummonGuardian(eff_idx, summon_prop->FactionId);
|
||||
else
|
||||
DoSummon(eff_idx);
|
||||
DoSummonPet(eff_idx);
|
||||
break;
|
||||
}
|
||||
case SUMMON_PROP_GROUP_CONTROLLABLE:
|
||||
|
|
@ -4869,7 +4869,7 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx)
|
|||
}
|
||||
}
|
||||
|
||||
void Spell::DoSummon(SpellEffectIndex eff_idx)
|
||||
void Spell::DoSummonPet(SpellEffectIndex eff_idx)
|
||||
{
|
||||
if (m_caster->GetPetGuid())
|
||||
return;
|
||||
|
|
@ -4884,7 +4884,7 @@ void Spell::DoSummon(SpellEffectIndex eff_idx)
|
|||
CreatureInfo const* cInfo = sCreatureStorage.LookupEntry<CreatureInfo>(pet_entry);
|
||||
if (!cInfo)
|
||||
{
|
||||
sLog.outErrorDb("Spell::DoSummon: creature entry %u not found for spell %u.", pet_entry, m_spellInfo->Id);
|
||||
sLog.outErrorDb("Spell::DoSummonPet: creature entry %u not found for spell %u.", pet_entry, m_spellInfo->Id);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue