# Gameplay Effect defined in C++ does not apply

**URL:** <https://forums.unrealengine.com/t/gameplay-effect-defined-in-c-does-not-apply/746502>\
**Category:** C++\
**Tags:** Gameplay-Effects, unreal-engine, Gameplay-Ability-System, question\
**Created:** [January 10, 2023, 6:42pm UTC](https://forums.unrealengine.com/t/gameplay-effect-defined-in-c-does-not-apply/746502 "2023-01-10T18:42:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zorakirby](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zorakirby](https://forums.unrealengine.com/u/Zorakirby)\
**Post date:** [January 10, 2023, 6:42pm UTC](https://forums.unrealengine.com/t/gameplay-effect-defined-in-c-does-not-apply/746502/1 "2023-01-10T18:42:32Z")

</div>

I’ve created 2 effect classes that should in theory be identical - one in Blueprint, the other in C++

However, when attempting to apply the effect to a character, only the Blueprint one is applied. What’s going on?

C++ Version:

 ![GE_CPP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/1/af17218ff33f078c386f54a281be48f662aba517.png)

Blueprint Version:  
 ![GE_Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/f/5afbc4a90efbedc8c1f406f47e71fa2df1440158.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 10, 2023, 7:09pm UTC](https://forums.unrealengine.com/t/gameplay-effect-defined-in-c-does-not-apply/746502/2 "2023-01-10T19:09:20Z")

</div>

If they have the same name perhaps internal shadowing of the code? Try renaming the bp one temporarily and see it it changes.
