From 1ebade03d51b2f6aa1bde099776f477b93c4e89e Mon Sep 17 00:00:00 2001 From: QAston Date: Mon, 2 Mar 2009 23:37:24 +0100 Subject: *Fix crash. *Prevent applying cast time mod for spell twice. --HG-- branch : trunk --- src/game/Unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Unit.h') diff --git a/src/game/Unit.h b/src/game/Unit.h index 449df62109e..8d08f793eac 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1477,7 +1477,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject int32 CalculateSpellDamage(SpellEntry const* spellProto, uint8 effect_index, int32 basePoints, Unit const* target); int32 CalcSpellDuration(SpellEntry const* spellProto); int32 ModSpellDuration(SpellEntry const* spellProto, uint8 effect_index, Unit const* target, int32 duration); - void ModSpellCastTime(SpellEntry const* spellProto, int32 & castTime); + void ModSpellCastTime(SpellEntry const* spellProto, int32 & castTime, Spell const * spell=NULL); float CalculateLevelPenalty(SpellEntry const* spellProto) const; void addFollower(FollowerReference* pRef) { m_FollowingRefManager.insertFirst(pRef); } -- cgit v1.2.3