Hi!
I’m running into some issues with my polymorphic spell system.
Here you can see my parent spell class, which has basic functions, lets concentrate on OnSpellCast :
For this to work, i also have some functions, ie GetTargetedCase, which will point towards all the places my spell will affect (see Cases as some sort of squares on a draughtboard. each spell affect 0 to a few ones.)
So basically, in my head, i just needed to override this function on spells, then as i’d call newSpell.OnSpellCast(), it goes into ParentClass.OnSpellCast, that calls newSpell.GetTargetedCase, but apparently it just calls ParentClass.GetTargetedCase, doesn’t it?
Thanks everybody