Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Ubertip] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNHardenedSkin.blp
[abilList] => Array
(
)
[Name] => Fragmentation Round
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 2000
[author] => cedi
[authorDisplay] => DreamStrider
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
ProjectileType PT
BuffType BT
endglobals
function PT_Hit takes Projectile P, Unit U returns nothing
local Tower T = P.getCaster()
local Buff B = U.getBuffOfType( BT )
if B != 0 then
set P.userReal = P.userReal * (1.40 )
endif
call T.doAttackDamage( U, P.userReal * 0.45 , 1.0 )
call BT.apply( T, U, B.getLevel() )
endfunction
function BT_DMG takes Buff B returns nothing
if Event.isMainTarget() == false and Event.isSpellDamage() == false then
set Event.damage = Event.damage * ( 1.40 )
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 PT = ProjectileType.createInterpolate( "Abilities\\Weapons\\BloodElfSpellThiefMISSILE\\BloodElfSpellThiefMISSILE.mdl", 1000.0 )
call PT.enableHoming( PT_Hit, 0.1 )
set BT = BuffType.create( 5.0, 0.0, false )
call BT.setBuffIcon( '@@0@@' )
call BT.addEventOnDamaged( BT_DMG, 1.0, 0.0 )
endfunction
[values] => Array
(
[explain] => On damage, the carrier of this item has a |cffFFFF8040%|r chance to hit up to |cffFFFF802|r other creeps within |cffFFFF80500|r range of the main target with fragments that deal |cffFFFF8045%|r of the damage and cause hit creeps to take |cffFFFF8040%|r more damage from further fragments and splash damage for the next |cffFFFF805|r seconds.
[visible] => true
[goldcost] => 2000
[name] => Fragmentation Round
)
)
[1] => Array
(
[name] => On Damage
[code] => local Iterate I
local Unit U
local Unit Targ
local integer i = 2
if Event.isMainTarget() then
set Targ = Event.getTarget()
set I = Iterate.overUnitsInRangeOfUnit( itm.getCarrier(), TARGET_CREEPS, Targ, 500.0 )
loop
set U = I.next()
exitwhen U == 0
if U != Targ then
set Projectile.createFromUnitToUnit( PT, itm.getCarrier(), 1.0, 1.0, Targ, U, true, false, true ).userReal = Event.damage
set i = i - 1
if i == 0 then
call I.destroy()
exitwhen true
endif
endif
endloop
endif
[values] => Array
(
[explain] =>
[ONDAMAGE_chance] => 0.4
[visible] => false
[goldcost] => 0
[name] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[EditorName] => Fragmentation Round
[Buffubertip] => This unit takes increased damage from splash and fragments.
[TargetArt] => Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
[Bufftip] => Fragmentation Round
[Buffart] => ReplaceableTextures\CommandButtons\BTNCriticalStrike.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)