# Few interrogations on polymorphism

**URL:** <https://forums.unrealengine.com/t/few-interrogations-on-polymorphism/561130>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [May 19, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/few-interrogations-on-polymorphism/561130 "2022-05-19T14:41:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProVentus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProVentus](https://forums.unrealengine.com/u/ProVentus)\
**Post date:** [May 19, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/few-interrogations-on-polymorphism/561130/1 "2022-05-19T14:41:30Z")

</div>

Hi!  
I’m running into some issues with my polymorphic spell system.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/3/c33bcd9cbb7866e12b42490a183d5569874728a7.png)  
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

---

<div class="post-metadata">

**Author:** ![ProVentus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProVentus](https://forums.unrealengine.com/u/ProVentus)\
**Post date:** [May 23, 2022, 10:28am UTC](https://forums.unrealengine.com/t/few-interrogations-on-polymorphism/561130/2 "2022-05-23T10:28:34Z")

</div>

Up? ^^’
