Hippogryph Egg v1 600
lvl: 22
|
ID: 130
Author: drol
Rarity: rare
Status: Approved
|
Hippogryph Young
Grants a 15% attackspeed adjusted chance on attack to release a hippogryph that attacks the target, dealing 1250 spell damage in 200 range of the target. Level Bonus: +50 spell damage |
Download
Toggle Triggers Header
goldcost: 600
globals
ProjectileType drol_hippo
endglobals
function hippoHit takes Projectile p, Unit creep returns nothing
local Unit caster = p.getCaster()
if creep.isImmune() == false then
call caster.doSpellDamageAoE(p.x, p.y, 200, 1250 + caster.getLevel() * 50,1.0,caster.calcSpellCritNoBonus())
call Effect.createScaled("Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl",p.x, p.y, p.z,0,0.8).destroy()
endif
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 drol_hippo = ProjectileType.create("units\\nightelf\\Hippogryph\\Hippogryph.mdl",20,800)
call drol_hippo.disableExplodeOnHit()
call drol_hippo.disableExplodeOnExpiration()
call drol_hippo.enableHoming(hippoHit, 0)
endfunction
On Attack
goldcost: 0
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
local Tower twr = itm.getCarrier()
local Projectile p
if twr.calcChance((0.15 * twr.getBaseAttackspeed())) then
set p = Projectile.createFromUnitToUnit(drol_hippo,twr,1,twr.calcSpellCritNoBonus(),twr,Event.getTarget(),true,false,false)
call p.setScale(0.6)
endif
endfunction
|
Description:
Latest Upload Comment: