Skip to content
Snippets Groups Projects
Commit bfbd0cc0 authored by dg's avatar dg
Browse files

Wearing antimagic items as an arcane character will give you a visible debuff...

Wearing antimagic items as an arcane character will give you a visible debuff to notice of the spell failure


git-svn-id: http://svn.net-core.org/repos/t-engine4@6492 51575b47-30f0-44d4-a5cc-537603b46e54
parent 867c321d
No related branches found
No related tags found
No related merge requests found
......@@ -2828,6 +2828,9 @@ function _M:onWear(o, bypass_set)
if o.power_source and o.power_source.antimagic then
self:attr("spellpower_reduction", 1)
self:attr("spell_failure", (o.material_level or 1) * 10)
if self:attr("has_arcane_knowledge") then
self:setEffect(self.EFF_ANTIMAGIC_DISRUPTION, 1, {})
end
end
-- Apply Psychometry
......
game/modules/tome/data/gfx/effects/antimagic_disruption.png

3.69 KiB

......@@ -2229,3 +2229,19 @@ newEffect{
self.onTakeHit = old
end,
}
newEffect{
name = "ANTIMAGIC_DISRUPTION",
desc = "Antimagic Disruption",
long_desc = function(self, eff) return ("Your arcane powers are disrupted by your antimagic equipment."):format() end,
type = "other",
subtype = { antimagic=true },
status = "detrimental",
decrease = 0, no_remove = true,
parameters = { },
on_timeout = function(self, eff)
if not self:attr("has_arcane_knowledge") or not self:attr("spellpower_reduction") then
self:removeEffect(self.EFF_ANTIMAGIC_DISRUPTION, true, true)
end
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