[12042] Add summon amount exception for engineering pets

This commit is contained in:
Schmoozerd 2012-07-15 01:57:29 +02:00
parent dc60abae90
commit 5060d55b05
2 changed files with 4 additions and 1 deletions

View file

@ -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;

View file

@ -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__