예제 #1
0
        private void propertyKill()
        {
            _battleStatus = CMsgHeader.STATUS_PROPERTY_KILL;
            float[] proMul = BT_WarUtils.propertyVs(_curAtter._property, _curDefer._property);

            if (proMul[0] > 1)
            {
                //无视属性克制
                if (_curDefer.shouldCastIgnorePropertyKill())
                {
                    return;
                }
            }

            if (proMul[1] > 1)
            {
                //无视属性克制
                if (_curAtter.shouldCastIgnorePropertyKill())
                {
                    return;
                }
            }

            _curAtter.curAttEnhance(proMul[0]);

            if (_isWorldBoss == 0)//不是世界boss
            {
                _curDefer.curAttEnhance(proMul[1]);
            }

            CMsgPropertyEnchance msg = new CMsgPropertyEnchance(proMul[0], proMul[1], _curAtter.curAtt, _curDefer.curAtt);

            addMsgToRecorder(msg);
        }