[Custom] Spell targeting Issue #265
-
Cures, Protects, Shells, ~nas, and Haste's cant be cast on PCs outside of a party or alliance on my server as an Anti-Power Leveling measure. After switching over from topaz, cures all of a sudden can't be cast on the caster either, but otherwise works as intended including monsters. Pro/Shell/~nas/Haste all work fine too, including self targeting. The code in charentity.cpp is the only code I've changed that I don't fully understand, I had help implementing this feature right before DSP died way back when. Any help would be appreciated, I am at a loss. Code for the Anti-PL stuff is the link below. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Does this issue occur with an unmodified version of the server? Else, there's not much we can do. |
Beta Was this translation helpful? Give feedback.
-
At a glance this looks like it should work without the changes to the target flags, I'll take a closer look tomorrow EDIT: Moved answer up to here from the replies:
|
Beta Was this translation helpful? Give feedback.
At a glance this looks like it should work without the changes to the target flags, I'll take a closer look tomorrow
EDIT: Moved answer up to here from the replies:
PInitiator != this
This means: The caster of the spell is not the target. Try removing this section altogether, for your goal you probably aren't concerned with someone casting on themselves.