游戏精英
 
- 贡献度
- 217
- 金元
- 62947
- 积分
- 7173
- 精华
- 1
- 注册时间
- 2008-1-14
|
--「邊防將軍」
--場上所有友軍,攻擊力上升25%,受到傷害減免15%
require "helper"
local allies = {}
function BeginTurn(turn)
PowerEvent()
end
function PowerEvent()
allies = GetAllyUnit()
for i, v in ipairs(allies) do
--自身以外、傷害減免15%
if v.Id ~= unit.Id then
v.AddBuff("nick151buff")
end
end
end
function RemoveBuffEvent()
allies = GetAllyUnit()
for i, v in ipairs(allies) do
--自身以外、傷害減免15%
if v.Id ~= unit.Id then
v.RemoveBuff("nick151buff")
end
end
end
--當自身數值發生變化
function PropertyChange(index)
if index == Prop.HP then
if unit[Prop.HP] <= 0 then
RemoveBuffEvent()
print(unit.Name .. " 死亡,移除隊友".. item.Name .. " BUFF !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
end
end
end
|
|