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

fix: spells and runes interactions #3328

Merged
merged 27 commits into from
Feb 9, 2025

Conversation

kaleohanopahala
Copy link
Contributor

@kaleohanopahala kaleohanopahala commented Feb 6, 2025

  • It is now possible to throw runes over stairs and holes (Global Condition), and use spells on walls.
  • An efficiency improvement was also made to avoid unnecessary reallocations.
  • Correct actions like a global tibia.

image
image
image
image

Maybe can close issue #2446 and #2794

#Reopened because I accidentally deleted the repository.

@murilo09
Copy link
Contributor

murilo09 commented Feb 6, 2025

It's not yet possible to throw an avalanche at a magic wall (ID 2128 and 10181).
https://youtu.be/Q5ItUPYRZv4?t=510

Fix murilo09 issue.
@kaleohanopahala
Copy link
Contributor Author

It's not yet possible to throw an avalanche at a magic wall (ID 2128 and 10181). https://youtu.be/Q5ItUPYRZv4?t=510

Can you test again?
Changes on combat.cpp.

Now the aggressive flag check is the first condition to be evaluated. If aggressive is false, the function immediately returns RETURNVALUE_NOERROR, bypassing all the other checks that follow.
Co-authored-by: murilo09 <[email protected]>
@murilo09
Copy link
Contributor

murilo09 commented Feb 7, 2025

I’ll test it tomorrow

Copy link

sonarqubecloud bot commented Feb 8, 2025

@majestyotbr majestyotbr merged commit ab32754 into opentibiabr:main Feb 9, 2025
32 checks passed
lucas-caminha pushed a commit to lucas-caminha/canary that referenced this pull request Feb 10, 2025
@kaleohanopahala kaleohanopahala deleted the spells branch February 10, 2025 17:57
vllworldbuilding pushed a commit to vllworldbuilding/canary that referenced this pull request Feb 20, 2025
@W4gNII
Copy link

W4gNII commented Feb 24, 2025

hello @kaleohanopahala I have a problem when you cast a spell on a wall in the south position 0 sqm's away

note: only occurred on walls in the south position, spells and runes ignore a

20250223-2302-26.6136320.mov

wall mechanic and continue after walls

i need revert the pr and all issuse are solved

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.

You cannot use a frontal attack spell on a magic wall. Runes usage in tiles.
4 participants