Chameleon Glaive v1 1100
lvl: 31
|
ID: 284
Author: Boekie
Rarity: unique
Status: Approved
|
Launch Glaive
The carrier has a 40% chance on attack to fire an extra projectile that deals the same amount of damage as a normal attack. Can crit. Level Bonus: +0.4% chance |
Download
Toggle Triggers Header
goldcost: 0
globals
ProjectileType boekie_multiGun
endglobals
public function hit takes Projectile p, Unit creep returns nothing
local Tower tower = p.getCaster()
call tower.doAttackDamage(creep, tower.getCurrentAttackDamageWithBonus(), tower.calcAttackMulticrit(0, 0, 0))
endfunction
//Do not remove or rename this function!
//Put your initialization tasks here, this function will be called on map init
private function init takes nothing returns nothing
set boekie_multiGun = ProjectileType.create("Abilities\\Weapons\\GlaiveMissile\\GlaiveMissile.mdl", 4, 1000)
call boekie_multiGun.enableHoming(ProjectileTargetEvent.hit, 0)
endfunction
On Attack
goldcost: 1100
ONATTACK_chance: 0.40
ONATTACK_chanceLevelAdd: 0.004
function onAttack takes Item itm returns nothing
local Tower tower = itm.getCarrier()
local Unit creep = Event.getTarget()
local Projectile p
set p = Projectile.createFromUnitToUnit(boekie_multiGun,tower,1,0,tower,creep,true,false,false)
call p.setScale(0.75)
endfunction
|
Description:
Latest Upload Comment: