From 5060d55b05fba3219a1c895a7107cc5ca65352de Mon Sep 17 00:00:00 2001 From: Schmoozerd Date: Sun, 15 Jul 2012 01:57:29 +0200 Subject: [PATCH] [12042] Add summon amount exception for engineering pets --- src/game/SpellEffects.cpp | 3 +++ src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 90c0d5509..2934301e9 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -4772,7 +4772,10 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx) ItemPrototype const* proto = m_CastItem->GetProto(); if (proto && proto->RequiredSkill == SKILL_ENGINEERING) if (uint16 engineeringSkill = ((Player*)m_caster)->GetSkillValue(SKILL_ENGINEERING)) + { level = engineeringSkill / 5; + amount = 1; // TODO HACK (needs a neat way of doing) + } } CreatureSummonPositions summonPositions; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index e475aa5c7..a28de5bdf 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12041" + #define REVISION_NR "12042" #endif // __REVISION_NR_H__