mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
Fix typos
This commit is contained in:
parent
bbddb5f87d
commit
c9ddf0e15d
2 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@ api.potion = type: 'potion', text: "Health Potion", notes: "Recover 15 Health (I
|
|||
thing and receives another, it will cause errors. `self` is used for self buffs, multi-task debuffs, AOEs (eg, meteor-shower),
|
||||
etc. Basically, use self for anything that's not [task, party, user] and is an instant-cast
|
||||
|
||||
* {cast}: the fucntion that's run to perform the ability's action. This is pretty slick - because this is exported to the
|
||||
* {cast}: the function that's run to perform the ability's action. This is pretty slick - because this is exported to the
|
||||
web, this function can be performed on the client and on the server. `user` param is self (needed for determining your
|
||||
own stats for effectiveness of cast), and `target` param is one of [task, party, user]. In the case of `self` spells,
|
||||
you act on `user` instead of `target`. You can trust these are the correct objects, as long as the `target` attr of the
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ describe 'User', ->
|
|||
describe 'spells', ->
|
||||
_.each shared.content.spells, (spellClass)->
|
||||
_.each spellClass, (spell)->
|
||||
it "#{spell.text} have a valid target", ->
|
||||
it "#{spell.text} has a valid target", ->
|
||||
expect(spell.target).to.match(/^(task|self|party|user)$/)
|
||||
|
||||
describe 'drop system', ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue