Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNFrostTower.blp
            [dmgplus1] => 1608
            [bldtm] => 1
            [goldcost] => 1900
            [sides1] => 1
            [manaN] => 100
            [launchZ] => 120
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Mind Allocator
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDG
            [Missileart] => Abilities\Weapons\ZigguratMissile\ZigguratMissile.mdl
            [Missilespeed] => 1000
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 10
            [green] => 100
            [modelScale] => 0.1
            [rangeN1] => 900
            [atkType1] => magic
            [cool1] => 1.5
            [Ubertip] => A relic infused with the wisdom of past magicians, allowing their knowledge to be directly imprinted into the mind, enhancing magical prowess.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [abil_factor] => 0.47
            [author] => Moppy
            [alpha] => 255
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [element] => arcane
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 2.06265
                    [y] => -2.177
                    [z] => -6.4
                    [scale] => 0.504
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => 52.8304
                    [y] => -52.5166
                    [z] => -38.4
                    [scale] => 0.24
                    [rot] => 2.3562
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -50.3885
                    [y] => -50.8339
                    [z] => -38.4
                    [scale] => 0.24
                    [rot] => 0.785398
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => 52.0448
                    [y] => 51.1228
                    [z] => -38.4
                    [scale] => 0.24
                    [rot] => 3.92699
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => -50.5476
                    [y] => 50.8299
                    [z] => -38.4
                    [scale] => 0.24
                    [rot] => 5.49779
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => 0.811795
                    [y] => -5.09534
                    [z] => 70.4
                    [scale] => 0.6
                    [rot] => 1.5708
                    [file] => Objects\InventoryItems\CrystalShard\CrystalShard.mdl
                    [red] => 100
                    [green] => 125
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => true
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => 1.44772
                    [y] => -3.06831
                    [z] => 76.8
                    [scale] => 0.5
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Human\ManaShield\ManaShieldCaster.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => true
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => 1.35552
                    [y] => -24.2811
                    [z] => 6.4
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => -0.443137
                    [y] => 0.119848
                    [z] => -19.2
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => 0.408858
                    [y] => -2.99621
                    [z] => -19.2
                    [scale] => 0.12
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [10] => Array
                (
                    [x] => 2.85417
                    [y] => 20.0576
                    [z] => 6.4
                    [scale] => 0.15
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [11] => Array
                (
                    [x] => 2.49376
                    [y] => 16.7419
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [12] => Array
                (
                    [x] => 1.56149
                    [y] => -20.3495
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [13] => Array
                (
                    [x] => 1.60043
                    [y] => 11.0822
                    [z] => 57.6
                    [scale] => 0.09
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [14] => Array
                (
                    [x] => 0.794556
                    [y] => -16.1826
                    [z] => 57.6
                    [scale] => 0.09
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [15] => Array
                (
                    [x] => 0.0507591
                    [y] => 0.131968
                    [z] => -12.8
                    [scale] => 0.225
                    [rot] => 1.5708
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [16] => Array
                (
                    [x] => 0.108875
                    [y] => -52.8864
                    [z] => -44.8
                    [scale] => 0.24
                    [rot] => 1.5708
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [17] => Array
                (
                    [x] => 1.4463
                    [y] => 48.338
                    [z] => -44.8
                    [scale] => 0.24
                    [rot] => 4.71239
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.3
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [18] => Array
                (
                    [x] => 1.61015
                    [y] => 20.2216
                    [z] => 64
                    [scale] => 0.135
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [19] => Array
                (
                    [x] => 0.596788
                    [y] => -27.5411
                    [z] => 64
                    [scale] => 0.135
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 50
                    [green] => 25
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [20] => Array
                (
                    [x] => 2.58412
                    [y] => -1.09529
                    [z] => 70.4
                    [scale] => 0.15
                    [rot] => 3.14159
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [21] => Array
                (
                    [x] => -2.98516
                    [y] => -0.980501
                    [z] => 70.4
                    [scale] => 0.15
                    [rot] => 0
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [22] => Array
                (
                    [x] => 41.0482
                    [y] => -1.05725
                    [z] => 108.8
                    [scale] => 0.15
                    [rot] => 3.14159
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [23] => Array
                (
                    [x] => -41.2034
                    [y] => -1.08194
                    [z] => 108.8
                    [scale] => 0.15
                    [rot] => 0
                    [file] => war3mapImported\Square_Column.mdl
                    [red] => 100
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType moppy_mind_allocator_buff
        BuffType moppy_mind_allocator_debuff
    endglobals
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function Cognitive_Imprint_onDamage takes Buff b returns nothing
        set Event.damage = Event.damage * (1.00 + (b.getBuffedUnit().getProp_SpellDmgDealt() - 1.00) * (0.10 + (b.getCaster().getLevel() * 0.004)))
    endfunction
    
    private function init takes nothing returns nothing
        local Modifier m = Modifier.create()
            set moppy_mind_allocator_buff = BuffType.create (10.0, 0.0, true)
            call m.addModification(MOD_SPELL_DAMAGE_DEALT,0.15, 0.006)
            call m.addModification(MOD_TRIGGER_CHANCES,0.15, 0.006)
            call moppy_mind_allocator_buff.addEventOnDamage(Cognitive_Imprint_onDamage, 100.0, 0.00)
            call moppy_mind_allocator_buff.setBuffModifier(m)
            call moppy_mind_allocator_buff.setBuffIcon('@@0@@')
            
            set m = Modifier.create()
            set moppy_mind_allocator_debuff = BuffType.create (5.0, 0.0, false)
            call m.addModification(MOD_SPELL_DAMAGE_RECEIVED, 0.10, 0.004)
            call moppy_mind_allocator_debuff.setBuffModifier(m)
            call moppy_mind_allocator_debuff.setBuffIcon('@@1@@')
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => call moppy_mind_allocator_debuff.apply(tower, Event.getTarget(), tower.getLevel())
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.125
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNUsedSoulGem.blp
                            [name] => Volatile Inscription
                            [short_explain] => The tower has a chance on hit to apply a volatile inscription on the target creep, increasing spell damage it takes.
                            [ONDAMAGE_chanceLevelAdd] => 0.005
                            [long_explain] => The tower has a |cffffff8012.5%|r chance on hit to apply a volatile inscription on the target creep, increasing spell damage it takes by |cffffff8010%|r for |cffffff805|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.5%|r chance|n|cffffff80+0.4%|r spell damage taken
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_autoRange] => 900
                            [AUTOCAST_manacost] => 80
                            [icon] => ReplaceableTextures\CommandButtons\BTNCharm.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [caster_art] => 
                            [long_explain] => Increases target tower's spell damage and trigger chances by |cffffff8015%|r, and its attack damage based on |cffffff8010%|r of its total bonus spell damage. Lasts |cffffff8010|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.6%|r spell damage|n|cffffff80+0.6%|r trigger chances|n|cffffff80+0.4%|r attack damage
                            [target_art] => Abilities\Spells\Items\AIim\AIimTarget.mdl
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
                            [AUTOCAST_buffType] => moppy_mind_allocator_buff
                            [AUTOCAST_isExtended] => false
                            [name] => Cognitive Imprint
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Increases target tower's spell damage and trigger chances, and its attack damage based on its bonus spell damage.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNbr
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [EditorName] => Cognitive Imprint
                            [Buffubertip] => Increased spell damage and trigger chances. Deals bonus attack damage based on its bonus spell damage.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Cognitive Imprint
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCharm.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [EditorName] => Volatile Inscription
                            [Buffubertip] => Taking increased spell damage.
                            [TargetArt] => Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
                            [Bufftip] => Volatile Inscription
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNUsedSoulGem.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)