Silver Knight v1
1200
|
ID: 39
Family ID:
Author: SirCoqaLot.
Rarity: rare
Element: iron
Attack Type: Physical
Attack Range: 875
Attack CD: 1.35
Damage: 939-1019
Abil. Factor: 0.55
Status: Approved
|
Specials:
+30% bounty collected (+1.2%/lvl)
Transmute
This tower has a 3.5% chance on attack to turn a non boss, non champion target into 6 additional gold immediately. Level Bonus: +0.04% chance
Gold Greed
On attack this tower deals [16 x squareroot (current gold)] spell damage to its target.
|
Download
Toggle Triggers Header globals
//@export
MultiboardValues Sir_gold_bonus
endglobals
private function init takes nothing returns nothing
set Sir_gold_bonus = MultiboardValues.create(1)
call Sir_gold_bonus.setKey(0,"Gold Greed")
endfunction
On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Unit creep = Event.getTarget()
set tower.userReal = 16.0*Pow(GetPlayerState(tower.getOwner().getThePlayer(), PLAYER_STATE_RESOURCE_GOLD),0.5)
if not creep.isImmune() then
if creep.getSize() < SIZE_CHAMPION and tower.calcChance(0.035+tower.getLevel()*0.0004) then
call SFXAtUnit("Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl",creep.getUnit())
call tower.killInstantly(creep)
call tower.getOwner().giveGold( 6,tower.getUnit(), true, true)
else
call tower.doSpellDamage(creep,tower.userReal,tower.calcSpellCritNoBonus())
call tower.getOwner().displayFloatingTextX(I2S(R2I(tower.getProp_SpellDmgDealt()*tower.userReal)),creep,255, 200, 0,255,0.05,0.0,2.0)
endif
endif
endfunction
On Tower Details function onTowerDetails takes Tower tower returns MultiboardValues
set tower.userReal = tower.getProp_SpellDmgDealt()*16.0*Pow(GetPlayerState(tower.getOwner().getThePlayer(), PLAYER_STATE_RESOURCE_GOLD),0.5)
call Sir_gold_bonus.setValue(0,I2S(R2I(tower.userReal)))
return Sir_gold_bonus
endfunction
|
Description:
Latest Upload Comment: