mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 22:37:05 +00:00
[11322] Get rid of redundant CalculateSpellDuration calls, calculate once in Spell::prepare
Also fix despawn time calculation of dynamic objects.
This commit is contained in:
parent
28375e295e
commit
0dfcbf8051
4 changed files with 16 additions and 25 deletions
|
|
@ -513,6 +513,7 @@ class Spell
|
|||
WeaponAttackType m_attackType; // For weapon based attack
|
||||
uint32 m_powerCost; // Calculated spell cost initialized only in Spell::prepare
|
||||
int32 m_casttime; // Calculated spell cast time initialized only in Spell::prepare
|
||||
int32 m_duration;
|
||||
bool m_canReflect; // can reflect this spell?
|
||||
bool m_autoRepeat;
|
||||
uint8 m_runesState;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue