blob: b146892cf8410b275610d8a2ce1412d0bf9d5096 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using System;
using System.Xml;
using XUtliPoolLib;
namespace XMainClient
{
internal class AIRuntimePhysicalAttack : AIRunTimeNodeAction
{
private string _target_name;
public AIRuntimePhysicalAttack(XmlElement node) : base(node)
{
this._target_name = node.GetAttribute("Shared_TargetName");
}
public override bool Update(XEntity entity)
{
return XSingleton<XAISkill>.singleton.TryCastPhysicalSkill(entity, entity.AI.Target);
}
}
}
|