script_library
Code: Select all
function checkChampionEquip(champ_id, itemname)
champ = party:getChampion(champ_id)
for i=1,10 do
if champ:getItem(i):name == itemname then
return true
end
end
end
Code: Select all
onDamage = function(champ, dmg, dmgtype)
if script_library.checkChampionEquip(champ:getOrdinal(), "senvelor_shield") then
-- do stuff!
end
end