GameScene.cs 文件
Process函数最尾端加入
public override void Process()
{
....
....
AutoPotionBox.UpdateAutoAssist();
}
替换 函数 UseMagic前部分
public void UseMagic(SpellKey key, ClientUserMagic Spellmagic = null)
{
if (Game.Observer || User == null || User.Horse != HorseType.None || MagicBarBox == null)
return;
ClientUserMagic magic = null;
if (key != SpellKey.None)
{
foreach (KeyValuePair<MagicInfo, ClientUserMagic> pair in User.Magics)
{
switch (MagicBarBox.SpellSet)
{
case 1:
if (pair.Value.Set1Key == key)
magic = pair.Value;
break;
case 2:
if (pair.Value.Set2Key == key)
magic = pair.Value;
break;
case 3:
if (pair.Value.Set3Key == key)
magic = pair.Value;
break;
case 4:
if (pair.Value.Set4Key == key)
magic = pair.Value;
break;
}
if (magic != null)
break;
}
}
else
{
magic = Spellmagic;
}
if (magic == null || User.Level < magic.Info.NeedLevel1)
return;
switch (magic.Info.Magic)
增加自动技能代码
摘要:
GameScene.cs 文件...
您需要 登录账户 后才能发表评论
还没有评论,来说两句吧...