Merge branch 'develop' of github.com:HabitRPG/habitrpg into common-convert

This commit is contained in:
Blade Barringer
2015-02-12 13:32:23 -06:00
7 changed files with 60 additions and 34 deletions

View File

@@ -389,7 +389,7 @@ api.cast = function(req, res, next) {
series.push(function(cb2){found.save(cb2)});
}
if (group) {
if (group && !spell.silent) {
series.push(function(cb2){
var message = '`'+user.profile.name+' casts '+spell.text() + (targetType=='user' ? ' on '+found.profile.name : ' for the party')+'.`';
group.sendChat(message);