`win
11.12.2009, 18:49
Насколько помню офф - мана не регенится в бою, после её окончания - моб бьёт физ атакой
http://pastebin.org/63551
Проверьте :)
Index: Creature.cpp
================================================== =================
--- Creature.cpp (revision 835)
+++ Creature.cpp (working copy)
@@ -446,6 +446,10 @@
// CORPSE/DEAD state will processed at next tick (in other case death timer will be updated unexpectedly)
if(!isAlive())
break;
+
+ if (isInCombat())
+ break;
+
if(m_regenTimer > 0)
{
if(diff >= m_regenTimer)
http://pastebin.org/63551
Проверьте :)
Index: Creature.cpp
================================================== =================
--- Creature.cpp (revision 835)
+++ Creature.cpp (working copy)
@@ -446,6 +446,10 @@
// CORPSE/DEAD state will processed at next tick (in other case death timer will be updated unexpectedly)
if(!isAlive())
break;
+
+ if (isInCombat())
+ break;
+
if(m_regenTimer > 0)
{
if(diff >= m_regenTimer)