Page 2 of 2

Re: Disabling specific Spells Help

Posted: Tue Nov 11, 2014 9:04 pm
by OGDA
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

Re: Disabling specific Spells Help

Posted: Tue Nov 11, 2014 10:51 pm
by Echoplex
JKos wrote:Try

Code: Select all

      onCastSpell = function(party,champion,spellName)
         if spellName == "light" then
            return false
         end       
      end
IIRC this worked in LoG1.
Worked great thanks