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
Correct BlackSkull spells limitations #2333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since tfs is not a vanilla replica, this behavior should be configurable, or even better, could be completely done in lua when #2102 be merged.
@@ -1,4 +1,9 @@ | |||
function onCastSpell(creature, variant) | |||
if player:getSkull() == SKULL_BLACK then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
player is nil value here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
@@ -7,7 +12,7 @@ function onCastSpell(creature, variant) | |||
creature:getPosition():sendMagicEffect(CONST_ME_POFF) | |||
return false | |||
end | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing
data/weapons/scripts/burst_arrow.lua
Outdated
if player:getSkull() == SKULL_BLACK then | ||
return false | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace
src/monster.cpp
Outdated
if (player->getSkull() == SKULL_BLACK) { | ||
return false; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
src/spells.cpp
Outdated
player->sendCancelMessage(RETURNVALUE_NOTPOSSIBLE); | ||
return false; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
@@ -7,7 +12,7 @@ function onCastSpell(creature, variant) | |||
creature:getPosition():sendMagicEffect(CONST_ME_POFF) | |||
return false | |||
end | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@nekiro Can you resolve the conflicts? |
This pull request should fix #2329
According to http://tibia.wikia.com/wiki/Skull_System