mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[12042] Add summon amount exception for engineering pets
This commit is contained in:
parent
dc60abae90
commit
5060d55b05
2 changed files with 4 additions and 1 deletions
|
|
@ -4772,7 +4772,10 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx)
|
||||||
ItemPrototype const* proto = m_CastItem->GetProto();
|
ItemPrototype const* proto = m_CastItem->GetProto();
|
||||||
if (proto && proto->RequiredSkill == SKILL_ENGINEERING)
|
if (proto && proto->RequiredSkill == SKILL_ENGINEERING)
|
||||||
if (uint16 engineeringSkill = ((Player*)m_caster)->GetSkillValue(SKILL_ENGINEERING))
|
if (uint16 engineeringSkill = ((Player*)m_caster)->GetSkillValue(SKILL_ENGINEERING))
|
||||||
|
{
|
||||||
level = engineeringSkill / 5;
|
level = engineeringSkill / 5;
|
||||||
|
amount = 1; // TODO HACK (needs a neat way of doing)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CreatureSummonPositions summonPositions;
|
CreatureSummonPositions summonPositions;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12041"
|
#define REVISION_NR "12042"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue