Comments (2)
Honestly we already have that, if you don't give any targ flag, the spell automatically cast on yourself directly,
eq;
[SPELL 44]
// NOTE: Used primarily to regain mana while fighting or cast helpful spells without incurring attack. Duration should reflect the non-offensive use of this spell
DEFNAME=s_invisibility
NAME=Invisibility
SOUND=snd_spell_invisibility
RUNES=ALX
CAST_TIME=1.8
RESOURCES=i_reag_blood_moss,i_reag_nightshade
RUNE_ITEM=i_rune_invisibility
SCROLL_ITEM=i_scroll_invisibility
FLAGS=spellflag_dir_anim|spellflag_good
EFFECT_ID=0
EFFECT=0
LAYER=layer_spell_invis
DURATION=3*60.0,5*60.0
MANAUSE=20
SKILLREQ=MAGERY 60.0
INTERRUPT=100.0,100.0
ON=@Effect
FLAGS &= ~statf_hidden
If you cast invisibilty with that flags, you can see it cast on himself directly. You just need to remove targ flags from spells to make it only self-cast.
from source-x.
This may happen for spells without effect_id, but for spells with effect_id, removing all targeting flags will cause the spell effect to not occur at all. eg; protection spell or reactive armor spell
from source-x.
Related Issues (20)
- serv.build debug HOT 1
- Remove appveyor build
- Human Corpse - invisible hair/beard HOT 3
- CANMASK no save on server reboot HOT 2
- Height and width information of items HOT 10
- Not read correctly UOP map files HOT 1
- SQL Error: 21 HOT 7
- Items won't decay HOT 1
- Change body do not work anymore since dispid implementation HOT 2
- Discussion: Server layers system HOT 3
- @KILL -> SRC should be killer, not victim HOT 1
- Chat Debug HOT 4
- Criminal & Guard Problem. HOT 2
- Summoned PK monster don't attack. HOT 3
- Follower Commands Don't Work. HOT 7
- t_crops HOT 3
- [Question] Weapon_GetAttack HOT 2
- t_spawn_item HOT 6
- Taming and OF_PetSlots bug? HOT 14
- Error setting more1/more2 Value on a spellbook (may affect other variable assignation) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from source-x.