Es una skill que hace daño inicial y paulatinamente durante su duracion. Tiene otros efectos pero esos si funcionan.
Lo que no funciona es el daño paulatino. Por alguna razón, la condicion que esta dentro del if en la habilidad que veran, lo toma como falso, cuando la unidad si tiene el buff. Y entonces no hace el daño y ocurre lo que esta en ''otros''.
Aqui el deto
[gui]Corte Profundo
Acontecimientos
Unidad - A unit Inicia el efecto de una habilidad
Condiciones
(Ability being cast) Igual a Corte Profundo
Acciones
Custom script: local unit udg_CP_Caster
Custom script: local unit udg_CP_Target
Custom script: local real udg_CP_Damage
Unidad - Create 1 Dummy Generico for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Vista edificio predeterminada degrees
Unidad - Add Menos armadura (1-150) to (Last created unit)
Unidad - Set level of Menos armadura (1-150) for (Last created unit) to ((Level of (Triggering unit)) / 3)
Unidad - Order (Last created unit) to Alquimista neutral: Bomba ácida (Target unit of ability being cast)
Unidad - Add a 3.00 second Genérico expiration timer to (Last created unit)
Unidad - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (1.00 x (1.00 + (Real((Base Damage of (Triggering unit) for weapon index 1))))) damage of attack type Conjuros and damage type Normal
Grupo de unidad - Add (Target unit of ability being cast) to CP_Grupo
Set CP_Damage = ((Real((Base Damage of (Triggering unit) for weapon index 1))) / 7.00)
Set CP_Target = (Target unit of ability being cast)
Set CP_Caster = (Triggering unit)
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Skip remaining actions
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
Wait 1.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Si: Condiciones
(CP_Target has buff Corte Profundo ) Igual a True
Entonces: Acciones
Unidad - Cause CP_Caster to damage CP_Target, dealing CP_Damage damage of attack type Conjuros and damage type Normal
Otros: Acciones
Custom script: set udg_CP_Target = null
Custom script: set udg_CP_Caster = null
Custom script: set udg_CP_Damage = 0
[/gui]
Esa condicion que le pongo antes de hacer el daño gradual, es para verificar que la habilidad no ha sido disipada, porque si es asi la habilidad no debe seguir haciendo el daño.
Yo creo o me imagino que debe ser por algun problema con las variables locales o no se, porque no veo el porque del fallo.