PDA

Просмотр полной версии : [9894] Move GetCastingTimeForBonus and some other code to GetSpellCastTimeForBonus.


newsbot
15.05.2010, 11:30
<pre>m src/game/SpellMgr.cpp
m src/game/SpellMgr.h
m src/game/Unit.cpp
m src/game/Unit.h
m src/shared/revision_nr.h

[9894] Move GetCastingTimeForBonus and some other code to
GetSpellCastTimeForBonus.

Important changes:

* Chaged way caluclation "-5% of total per any additional effect" to percent
apply instead use raw value that correct only for 3500 cast time spells.
* GetSpellCastTimeForBonus result now alwasy not applied to creature casted
spells
Before it not applied only to instant spells. Please test if this ok in all
cases.
* Leech effect modify spell casting time move into GetCastingTimeForBonus and
then called
also for melee spells. But only creature spells exist with melee class damage
and its
not affected by GetCastingTimeForBonus anyway now.

Signed-off-by: VladimirMangos <vladimir@getmangos.com></pre>



Дальше... (http://github.com/mangos/mangos/commit/0794182a3ed60a889256633a4253ed1fb43d956d)