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

Monster spells can not be used in melee #55528

Closed
GuardianDll opened this issue Feb 20, 2022 · 8 comments
Closed

Monster spells can not be used in melee #55528

GuardianDll opened this issue Feb 20, 2022 · 8 comments

Comments

@GuardianDll
Copy link
Member

GuardianDll commented Feb 20, 2022

Describe the bug

The game dont allow to use spells for monsters, if the enemy on 1 tile range, and use default melee instead (which is not okay sometimes, especially if you try to make AoE melee attack)
for example:

Steps to reproduce

  1. Give your character Debug invincibility
  2. Spawn boomer glutton
  3. approach to him on 1 tile range
  4. spam .
    You can see it doesnt vomit sludge and spews bile anymore, instead it only attack you in melee

Expected behavior

Allow to use spells in melee combat, same as another special_attacks
or
Make a field in special_attacks, that allow to use the spell in melee combat

Screenshots

GIF 20 02 2022 15-05-22

Versions and configuration

  • OS: Windows
    • OS Version: 10.0 2009
  • Game Version: 919d0fc [32-bit]
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    No Fungal Growth [no_fungal_growth],
    Bionic Professions [package_bionic_professions],
    Magiclysm [magiclysm]
    ]

Additional context

No response

@GuardianDll GuardianDll changed the title Spells can not be used in melee Monster spells can not be used in melee Feb 20, 2022
@Venera3
Copy link
Member

Venera3 commented Feb 20, 2022

If you're invisible you're not a valid target for special attacks - random-walking or scent/sound-tracking monsters bumping into you trigger a normal melee attack.

@GuardianDll
Copy link
Member Author

it doesnt work with another monster either
GIF 20 02 2022 15-37-10
GIF 20 02 2022 15-38-19

@GuardianDll
Copy link
Member Author

oh, mistake, i write "debug invincibility"

@Venera3
Copy link
Member

Venera3 commented Feb 20, 2022

Okay, the problem seems to be that they have a 1-turn cooldown on bites and a 28-turn one on the spell. Bumping the bite cooldown to 2 lets them get a spell off when in melee range.

@GuardianDll
Copy link
Member Author

if it were that easy i didn't open the issue here
"cooldown": 28 -> "cooldown": 2,
GIF 20 02 2022 20-47-34
(i test it with another creature, that had 0 cooldown, this is just the closest example that has spell attacks)

@Venera3
Copy link
Member

Venera3 commented Feb 20, 2022

You want their bite to be on cooldown. If you set their bit to 2 turns they can fire the spell (unsurprisingly, I tested it before commenting...).

@GuardianDll
Copy link
Member Author

GuardianDll commented Feb 20, 2022

hmmm
just delete all another attacks, and it began to use it.
thats odd, because in #55509 mon_shambling_mound in almost same conditions use it only once per 5-10 seconds, and totally ignore it if there is no "PACIFIST" flag, and i dont understand why

@Maleclypse
Copy link
Member

This looks good to close, if I'm reading this correctly if you have one special attack that can be used every turn then the monster will use it every turn and never use their other attacks?

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

No branches or pull requests

3 participants