-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Revscriptsys Monster #3485
Comments
Show your monster file |
Check this PR for examples #2975 |
|
I can repo. The problem is in this block of code. Only spells named "combat" get damage assigned and scripted spells have all different names so they fall into the else block. I was always bothered by this, why can't we just set up the condition like we do for melee and have it be an optional subtable and then we can check minDamage and maxDamage for every spell. I know that would have implications to forgottenserver/data/scripts/lib/register_monster_type.lua Lines 342 to 350 in 86b1332
|
Good eye! I'll prepare a PR for it soon |
Now damage is correctly applied to spells which are used from already existing spells
Well, I don't know if this is supposed to happen, but, when I try to register a monster using revscript and register a scripted spell such as sudden death rune, rage of the skies, energy strike, it doesn't work: it causes no damage.
Steps to reproduce
Expected behaviour
Cause the damage registered as minDamage and maxDamage
Actual behaviour
The monster is causing 0 damage
Environment
Windows 10
The text was updated successfully, but these errors were encountered: