[Archive] C++ related question.
[Archive] C++ related question.
Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source
Anyone know what the script would look like to remove an aura/buff when a player casts a certain spell through c++? I've tried a few things but I'm not entirely sure I know if that's the best, or even right way of doing it. To mention I am quite new to c++.
https://imgur.com/a/4uBPx
I am using a trinity-core 4.3.4 version. Also if you would like, point out any mistakes or general recommendations when coding in c++ for wow emulation.
Archived author: ravish123 • Posted: 2025-11-04T18:14:50.795636
Original source
You could check both conditions in the same if instead of making two ifs. Use the and operator (&&) http://www.cplusplus.com/doc/tutorial/operators/ .