Hi,
I just found out that I can make a character cast a spell by this code:
party.party:getChampion(4):castSpell(58)
58 is the number for the darkness spell (rune 5, then rune 8).
Light would be 25 (rune 2, then rune 5).
Kind regards,
Joerg
Disabling specific Spells Help
Re: Disabling specific Spells Help
Worked great thanksJKos wrote:Try
IIRC this worked in LoG1.Code: Select all
onCastSpell = function(party,champion,spellName) if spellName == "light" then return false end end