Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpellEffect on cubes #3829

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Conversation

walt253
Copy link
Contributor

@walt253 walt253 commented Jan 13, 2025

Allows mapmakers to create terrain that is beneficial or harmful to walk-by.

; Spell effect to cast on walk-by. Accepts both names and numbers.
SpellEffect = 0
; Defines the level of 'SpellEffect' when cast. A value of 0 uses the target’s level.
SpellLevel = 0
; Defines valid targets for 'SpellEffect'. Options are:
; FRIENDLY - Casts on allies.
; HOSTILE - Casts on enemies.
; NEUTRAL - Casts on neutrals.
; ONLY_DIGGER - Casts only on diggers.
; NOT_DIGGER - Does not cast on diggers.
; ONLY_EVIL - Casts only on evil creatures.
; NOT_EVIL - Does not cast on evil creatures.
; ONLY_FLYING - Casts only on flying creatures.
; NOT_FLYING - Does not cast on flying creatures.
; Example: 'Castability = FRIENDLY NOT_DIGGER NOT_FLYING' casts on allies that are neither flying nor diggers.
Castability = 0

@walt253 walt253 marked this pull request as ready for review January 13, 2025 22:00
@walt253 walt253 marked this pull request as draft January 14, 2025 08:31
@walt253 walt253 marked this pull request as ready for review January 14, 2025 19:18
@walt253 walt253 marked this pull request as draft January 24, 2025 19:18
Should now work correctly with flying creatures and related castability flags.
to avoid case of creatures being dropped by hand
fix incorrect name and missing CreatureControl struct
explevel -> exp_level

/s who is that silly person that renamed that :p
// Even though immunity is handled in 'apply_spell_effect_to_thing', check it here to prevent sound effects.
cleaner way
@walt253 walt253 marked this pull request as ready for review February 3, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants