mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
No Ethereal Surge on Mages (#10121)
* problem location identified (breaks code) * problem identification notes * Add class checking to ES (does not yet notify user) * Add error message * Add .gitattributes Attempting to fix line ending disaster * package stuff so I can see what's broken * add reminder and hopefully fix gitattributes * Fix lint errors * Redo surge fail notifs * exterminate rogue comment, fix gitattributes * Remove unused import As per @paglias' request. * fix(lint): remove extraneous expression * Delete .gitattributes * Fix skill key surge -> mpheal * Show notification only when there are mages in party * Fix notification being too big and appearing outside the notification div * Remove unused code * Only show the notification on parties with 2 or more mages The caster is a mage, so certainly at least 1 mage will be counted. * Automated test: mpheal does not heal other mages * Fix lint error * Fix typo in test description * Increase performance of test * Using target instead of requestion partyMembers again * Rename variable 'party' to 'partyMembers' * Update strings in English * spell -> Skill
This commit is contained in:
committed by
Matteo Pagliazzi
parent
df69208caa
commit
c21726ec61
@@ -62,7 +62,7 @@ spells.wizard = {
|
||||
cast (user, target) {
|
||||
each(target, (member) => {
|
||||
let bonus = statsComputed(user).int;
|
||||
if (user._id !== member._id) {
|
||||
if (user._id !== member._id && member.stats.class !== 'wizard') {
|
||||
member.stats.mp += Math.ceil(diminishingReturns(bonus, 25, 125));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user