魔兽私服 经验交流 发布家族 高手进阶心得 软件下载 魔兽私服技术文章 家族联盟 广告合作

解决卡怪

[FIX] - fix creature go and back loop if it has spell

--------------------------------------------------------------------------------

bug description1:
if a creature has spell and this spell doesn't need casttime,it may be go to target and backward again and again

bug description1:
if you are warlock,you have called Voidwalker,you open auto cast spell at pet control panel,and then you select a target,click attack at pet control panel,the Voidwalker will go and back(loop)

Code:
Index: game/AIInterface.cpp
===================================================================
--- game/AIInterface.cpp        (revision 670)
+++ game/AIInterface.cpp        (working copy)
@@ -901,6 +901,7 @@
                                        return;  // this shouldnt happen

                                /* stop moving so we don't interrupt the spell */
+                                if(m_nextSpell->spell->CastingTimeIndex != 1)
                                StopMovement(0);

                                float distance = m_Unit->GetDistanceSq(m_nextTarget);

上一篇魔兽私服文章:上一篇: 飞行坐骑~
下一篇魔兽私服文章:下一篇: 修复恐惧和变形术
魔兽世界私服 魔兽世界下载 wow魔兽私服
五二我的wow魔兽私服网 www.52mysf.com 提供最新开魔兽世界私服发布 版权所有