薛之猫大王
2026-02-22 3b98d982bed635e986ab09f8185cfa9b9b2c33bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local CONST     = require 'config.const'
local Suspicion = require 'systems.suspicion'
local Base      = require 'profession.base'
 
Base.register('phantom', function(unit, ability)
    unit:add_state(CONST.STATE_INVISIBLE)
    unit:set_transparent_when_invisible(false)
    unit:set_move_collision(1, false)
 
    unit:add_attr('移动速度', 1.5, '增益')
 
    clicli.timer.wait(4.0, function()
        unit:remove_state(CONST.STATE_INVISIBLE)
        unit:set_move_collision(1, true)
        unit:add_attr('移动速度', -1.5, '增益')
    end)
 
    Suspicion.add(unit, 20)
end)
 
return Base