Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[MissileHoming] => 1
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[goldcost] => 125
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1700
[impactZ] => 100
[moveHeight] => 100
[file] => units\orc\SpiritWyvern\SpiritWyvern.mdl
[manaN] => 17
[atkType1] => magic
[modelScale] => 0.6
[weapTp1] => missile
[acquire] => 900
[rangeN1] => 900
[upgrades] => Array
(
)
[cool1] => 1.5
[Ubertip] => Only seen above the highest clouds, this rare creature sears the sky.
[regenMana] => 1
[abilList] => Array
(
)
[launchZ] => 20
[Name] => Phantom
[Missileart] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNSpiritWyvern.blp
[buildingShadow] => Array
(
)
[turnRate] => 0.7
[unitSound] => Hippogryph
[sides1] => 1
[uberSplat] => OSMA
[auto] => Array
(
)
[dmgplus1] => 147
[bldtm] => 1
)
[settings] => Array
(
[author] => drol
[element] => storm
[authorDisplay] => |cffcc6600drol|r
[alpha] => 255
[balanceTip] => |cffFFFF00+0.1 |rmana regen/lvl
[rarity] => uncommon
[version] => 1.0
[abil_factor] => 0.75
)
[effects] => Array
(
[0] => Array
(
[x] => 13.0088
[y] => -25.8329
[z] => 0
[scale] => 0.15
[rot] => 3.10669
[file] => Doodads\Cityscape\Structures\City_ColumnDouble45\City_ColumnDouble45.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => -18.1995
[y] => 10.4327
[z] => 0
[scale] => 0.15
[rot] => 3.10669
[file] => Doodads\Cityscape\Structures\City_ColumnDouble45\City_ColumnDouble45.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_MANA_REGEN
[base] => 0
[add] => 0.1
)
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
//@export
BuffType drol_phantomBuff
//@export
Cast drol_phantomCast
//@export
Cast drol_phantomCast2
endglobals
//Casts chain lightning on attack
function phantomAttack takes Buff b returns nothing
local Tower twr = b.getBuffedUnit()
if b.getCaster().getLevel() < 20 then
if twr.calcChance( 0.25 * twr.getBaseAttackspeed()) then
call drol_phantomCast.targetCastFromCaster(twr, Event.getTarget(), 1. + b.userReal * 0.04, twr.calcSpellCritNoBonus())
endif
else
if twr.calcChance( 0.25 * twr.getBaseAttackspeed()) then
call drol_phantomCast2.targetCastFromCaster(twr, Event.getTarget(), 1. + b.userReal * 0.04, twr.calcSpellCritNoBonus())
endif
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
local Modifier m = Modifier.create()
call m.addModification(MOD_ATTACKSPEED, 0.1, 0.01)
set drol_phantomBuff = BuffType.create( 5.0, 0.1, true)
call drol_phantomBuff.setBuffModifier(m)
call drol_phantomBuff.setBuffIcon('@@2@@')
call drol_phantomBuff.addEventOnAttack( phantomAttack, 1., 0.)
set drol_phantomCast = Cast.create('@@1@@', "chainlightning", 5.0)
call drol_phantomCast.setSourceHeight(40.0)
set drol_phantomCast2 = Cast.create('@@0@@', "chainlightning", 5.0)
call drol_phantomCast2.setSourceHeight(40.0)
endfunction
[values] => Array
(
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => Autocast
[code] => set drol_phantomBuff.apply(tower, Event.getTarget(), tower.getLevel()).userReal = tower.getLevel()
[values] => Array
(
[caster_art] =>
[icon] => ReplaceableTextures\CommandButtons\BTNCyclone.blp
[AUTOCAST_cooldown] => 3
[AUTOCAST_numBuffsBeforeIdle] => 1
[AUTOCAST_isExtended] => false
[long_explain] => Increases the attackspeed of a tower in |cffFFFF80300|r range by |cffFFFF8010%|r and gives it a |cffFFFF8025%|r attackspeed adjusted chance to cast a chain of lightning which deals |cffFFFF80100|r initial spelldamage and hits up to |cffFFFF803|r targets dealing |cffFFFF8025%|r less damage each bounce. Effect lasts for |cffFFFF805|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r attackspeed|n|cffFFFF80+4|r spelldamage|n|cffFFFF80+1|r target at level |cffFFFF8020|r|n|cffFFFF80+0.1|r sec duration
[AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
[AUTOCAST_manacost] => 15
[AUTOCAST_range] => 300
[AUTOCAST_buffType] => drol_phantomBuff
[name] => Wind Shear
[AUTOCAST_targetSelf] => true
[short_explain] => Increases attackspeed of a target tower and gives it a chance to cast a chain of lightning.
[AUTOCAST_targetType] => TARGET_TYPE_TOWERS
[target_art] => Abilities\Spells\Items\AIlm\AIlmTarget.mdl
[AUTOCAST_autoRange] => 300
)
)
)
[abilities] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => ACcl
[oeValues] => Array
(
[Art] => ReplaceableTextures\CommandButtons\BTNChainLightning.blp
[Hotkey] => Array
(
)
[Cool1] => 0
[targs1] => air,enemies,ground,neutral,organic
[EditorSuffix] => (2)
[Cost1] => 0
[Rng1] => 2000
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => ACcl
[oeValues] => Array
(
[Art] => ReplaceableTextures\CommandButtons\BTNChainLightning.blp
[Hotkey] => Array
(
)
[Cool1] => 0
[targs1] => air,enemies,ground,neutral,organic
[EditorSuffix] => Array
(
)
[Cost1] => 0
[Rng1] => 2000
[DataB1] => 3
)
)
)
[buffs] => Array
(
[0] => Array
(
[id] => @@2@@
[derivedFrom] => Bblo
[oeValues] => Array
(
[Targetattach1] => Array
(
)
[Bufftip] => Wind Shear
[Targetattach] => Array
(
)
[Buffubertip] => This unit has Wind Shear; its attackspeed is increased and it has a chance to release a chain of lightning.
[Targetattachcount] => 0
[Buffart] => ReplaceableTextures\CommandButtons\BTNCyclone.blp
[TargetArt] => Array
(
)
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => drol_phantomBuff
)
[1] => Array
(
[export] => true
[category] => global
[typ] => Cast
[name] => drol_phantomCast
)
[2] => Array
(
[export] => true
[category] => global
[typ] => Cast
[name] => drol_phantomCast2
)
)
)