Skip to content
Snippets Groups Projects
Commit 3046a041 authored by DarkGod's avatar DarkGod
Browse files

fixed Feather Wind

parent e320ae8e
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ newEntity{
level_range = {14, nil},
faction = "zigur",
sight = 1,
rarity = 6,
rarity = 1,
unit_power = 20,
hates_arcane = 1,
movement_speed = 0.75,
......@@ -124,7 +124,7 @@ newEntity{
type="ambush",
width=18,
height=18,
nb={2, 3},
nb={20, 30},
filters={{special_rarity="humanoid_random_boss", random_boss={
nb_classes=1,
rank=3, ai = "tactical",
......@@ -132,6 +132,7 @@ newEntity{
loot_quality = "store",
loot_quantity = 1,
class_filter = function(c)
print("=============RANDBOSS TEST", c.power_source and c.power_source.arcane, c.name)
if c.power_source and c.power_source.arcane then return false end
return true
end,
......
......@@ -155,16 +155,17 @@ newTalent{
getFatigue = function(self, t) return math.floor(2.5 * self:getTalentLevel(t)) end,
activate = function(self, t)
game:playSoundNear(self, "talents/spell_generic2")
local ret = {
encumb = self:addTemporaryValue("max_encumber", t.getEncumberance(self, t)),
def = self:addTemporaryValue("combat_def_ranged", t.getRangedDefence(self, t)),
}
local ret = {}
self:talentTemporaryValue(ret, "max_encumber", t.getEncumberance(self, t))
self:talentTemporaryValue(ret, "combat_def_ranged", t.getRangedDefence(self, t))
if self:getTalentLevel(t) >= 4 then
ret.lev = self:addTemporaryValue("levitation", 1)
ret.traps = self:addTemporaryValue("avoid_pressure_traps", 1)
self:talentTemporaryValue(ret, "levitation", 1)
self:talentTemporaryValue(ret, "avoid_pressure_traps", 1)
end
if self:getTalentLevel(t) >= 5 then
ret.ms = self:addTemporaryValue("movement_speed", t.getSpeed(self, t))
self:talentTemporaryValue(ret, "movement_speed", t.getSpeed(self, t))
self:talentTemporaryValue(ret, "fatigue", -t.getFatigue(self, t))
end
......@@ -172,11 +173,6 @@ newTalent{
return ret
end,
deactivate = function(self, t, p)
self:removeTemporaryValue("max_encumber", p.encumb)
self:removeTemporaryValue("combat_def_ranged", p.def)
if p.lev then self:removeTemporaryValue("levitation", p.lev) end
if p.traps then self:removeTemporaryValue("avoid_pressure_traps", p.traps) end
if p.ms then self:removeTemporaryValue("movement_speed", p.ms) end
self:checkEncumbrance()
return true
end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment