LDoN chest/barrel traps
This code looks to be current (checked the repo), but this is on my server, so double check me.
When someone tried #picklock on a trapped LDoN chest that is pickable, they sometimes set off the trap. Thing is, it does nothing. This code below is the original from spells.cpp around line 2928, It gets called in the process of the trap firing. It does not specify true for the isspell argument to IsAttackAlllowed causing the LDoN check therein to diosallow the trap from firing. Code:
if(IsDetrimentalSpell(spell_id) && !IsAttackAllowed(spelltar) && !IsResurrectionEffects(spell_id)) {^M Code:
// Added true to IssAttackAllowed to specify spell - Noudess I didn't figure you'd want that code, since i also required db changes, and the above fix at least makes traps fire. |
Oh also, so I notice I had to use #picklock as the pick lock buttons do nothing in LDoNs. I'd be happy to look at that if no one else is. Status on that?
|
All times are GMT -4. The time now is 03:42 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.