initial commit

This commit is contained in:
2021-10-24 15:36:18 -04:00
commit b9a5a8fe23
11982 changed files with 220468 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
item_double_damage_potion = class({})
LinkLuaModifier( "modifier_item_double_damage_potion", "modifiers/modifier_item_double_damage_potion", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function item_double_damage_potion:OnSpellStart()
if IsServer() then
local kv =
{
duration = self:GetSpecialValueFor( "buff_duration" ),
}
self:GetCaster():AddNewModifier( self:GetCaster(), self, "modifier_item_double_damage_potion", kv )
EmitSoundOn( "DoubleDamagePotion.Activate", self:GetCaster() )
self:SpendCharge()
end
end
--------------------------------------------------------------------------------