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

Monsters cast beams and waves through wall #1690

Closed
LuisPro opened this issue Jan 18, 2016 · 21 comments
Closed

Monsters cast beams and waves through wall #1690

LuisPro opened this issue Jan 18, 2016 · 21 comments
Labels
needs-triage Needs testing with screenshot/video confirmation

Comments

@LuisPro
Copy link
Contributor

LuisPro commented Jan 18, 2016

When monster is in front to wall (anything, any BLOCKSOLID wall, included magic wall) and he is blocked by player..
Monster will cast beam and wave through wall!
http://i.imgur.com/63nsVoh.png

@marksamman
Copy link
Member

This might be working as intended, because the location where the player is standing is allowing it to go through the wall (and creatures don't block waves). I'm not entirely sure though, so I'll leave this open for discussion.

@marksamman marksamman added the needs-triage Needs testing with screenshot/video confirmation label Jan 19, 2016
@TheSumm
Copy link
Contributor

TheSumm commented Jan 19, 2016

I did not check for any more fitting location, but this should be the same circumstances tested on real tibia.

http://i.imgur.com/NFuxyPr.png

@LuisPro
Copy link
Contributor Author

LuisPro commented Jan 19, 2016

@TheSumm Yes, it should look like on your screen. Not like in my 1st screen.

Now we have this: http://i.imgur.com/Al3TYJo.png
It is 100% wrong.

@Donkey-Robot
Copy link

What about playing runes through the crystals? Same inssue or its a normal?

HERE

Players use this bug around demon oak quest (shooting runes), for help who are inside quest

@BenDol
Copy link

BenDol commented Jan 26, 2016

Anyone know why its doing this for monsters but not for players?

@LuisPro
Copy link
Contributor Author

LuisPro commented Jan 26, 2016

Becouse for players its blocked in Source. For monsters is not.

@TheSumm
Copy link
Contributor

TheSumm commented Jan 26, 2016

For players it checks if the tile infront of the player blocks the spells, which should be removed as you may cast all spells even when facing walls now: http://i.imgur.com/CJjLATQ.gifv
https://github.com/otland/forgottenserver/blob/master/src/spells.cpp#L696-L701

I don't know why the area check fails for monsters despite being behind a wall.

@BenDol
Copy link

BenDol commented Jan 27, 2016

Could be an issue with isSightClear? Or more probably AreaCombat::getList

@whitevo
Copy link

whitevo commented Jan 29, 2016

Well not really a fix to problem just a work around I use, maybe you want to go for it too.

Monsters cast spells in onThink() creaturescript and you make custom path finder. Which will take shortest path to target and check each position, does it block spell.

This way you can easily add custom things like: if fireball is shot trough fire field it gets stronger or if it goes trough magic wall it changes direction or if its mirror then its reflected, etc.

@LuisPro
Copy link
Contributor Author

LuisPro commented Mar 28, 2016

still unconfirmed?

@wgrr
Copy link
Contributor

wgrr commented Mar 30, 2016

At this moment on tibia you can cast spells when facing walls but it don't realize the spell area that are after wall, i just wonder if this is a feature that @marksamman would like to have here.

@Marofdp
Copy link

Marofdp commented May 2, 2016

its work normal free sqm see dragon using more magic wall dragon not use fire wave only fire bomb on free sqm :) on me its not bug ! better ways go to find other rlly critical bugs ..

i test this on rl / hexera and my server its same effect !

@wgrr
Copy link
Contributor

wgrr commented May 2, 2016

@Marofdp no, on real tibia all sqms instead that are behind the wall would get the damage area, here its going to all sqms, it's a bug.

@LuisPro
Copy link
Contributor Author

LuisPro commented May 7, 2016

@Marofdp english pls

@kamil-karkus
Copy link

Is player able to cast area spells over trees, bushes, etc...?

@kamil-karkus
Copy link

http://imgur.com/mz0MfYB
could anybody tell if it's expected behaviour?

@BenDol
Copy link

BenDol commented May 27, 2016

@kamil-karkus Yeah that looks to be the expected behavior

@kamil-karkus
Copy link

@BenDol thanks

http://imgur.com/lQcZtqm (dragon firebomb)
http://imgur.com/w0DuhlP (player firebomb)
http://imgur.com/ez9CgvA (player waves)
http://imgur.com/G5qZuO7 (dragon waves)

Please confirm if it works fine so I can create pull request tomorrow

@kamil-karkus
Copy link

kamil-karkus commented May 27, 2016

I'm confused, distance weapons behave changes or not? it should reach places reached by 'exevo tera hur' ?
or not? I can't test it on real tibia so need your help.

@TheSumm
Copy link
Contributor

TheSumm commented May 28, 2016

@kamil-karkus Neither the tree nor the small stone should be blocking the dragon's wave and the player's wave.

@Zbizu
Copy link
Contributor

Zbizu commented Dec 4, 2020

duplicate of #2891
The bug has been confirmed in 2891 already

@nekiro nekiro closed this as completed Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs testing with screenshot/video confirmation
Projects
None yet
Development

No branches or pull requests