Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Name] => Hippogryph Egg
[Art] => ReplaceableTextures\CommandButtons\BTNThunderLizardEgg.blp
[Ubertip] => Spawns a hippogryph who fights for the carrier.
[abilList] => Array
(
)
)
[settings] => Array
(
[author] => drol
[authorDisplay] => |cffcc6600drol|r
[balanceTip] => Array
(
)
[rarity] => rare
[goldcost] => 600
[version] => 1.0
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => 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
[values] => Array
(
[visible] => true
[name] => Hippogryph Young
[goldcost] => 600
[explain] => Grants a |cffFFFF8015%|r attackspeed adjusted chance on attack to release a hippogryph that attacks the target, dealing |cffFFFF801250|r spell damage in |cffFFFF80200|r range of the target.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+50|r spell damage
)
)
[1] => Array
(
[name] => On Attack
[code] => 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
[values] => Array
(
[visible] => false
[name] =>
[goldcost] => 0
[explain] =>
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)