MapServer.PlayerObject.Injured C# (CSharp) Method

Injured() public method

public Injured ( BaseObject obj, uint value, NetMsg info ) : void
obj BaseObject
value uint
info NetMsg
return void
        public override void Injured(BaseObject obj, uint value, NetMsg.MsgAttackInfo info)
        {
            this.GetFightSystem().SetFighting();

            //幻兽优先受伤害
            if (!this.GetEudemonSystem().Eudemon_Injured(obj, value, info))
            {
                //如果没有幻兽抵挡. 玩家就受到真实伤害
                this.ChangeAttribute(GameStruct.UserAttribute.LIFE, -(int)value);
            }
            GameStruct.Action action;
            action = new GameStruct.Action(GameStruct.Action.INJURED, null);
            action.AddObject(obj);
            action.AddObject(value);
            action.AddObject(info);
            this.PushAction(action);
        }