Fix missing this-reference in 9d20881ef4 and update gamesetup following a874b3c1c3.

This was SVN commit r18492.
This commit is contained in:
elexis 2016-07-07 00:10:26 +00:00
parent 20866bd9d8
commit 275be69883
2 changed files with 6 additions and 4 deletions

View File

@ -34,8 +34,10 @@ const g_NetMessageTypes = {
"players": msg => handlePlayerAssignmentMessage(msg),
"ready": msg => handleReadyMessage(msg),
"start": msg => handleGamestartMessage(msg),
"kicked": msg => addChatMessage({ "type": "kicked", "username": msg.username }),
"banned": msg => addChatMessage({ "type": "banned", "username": msg.username }),
"kicked": msg => addChatMessage({
"type": msg.banned ? "banned" : "kicked",
"username": msg.username
}),
"chat": msg => addChatMessage({ "type": "chat", "guid": msg.guid, "text": msg.text })
};

View File

@ -41,7 +41,7 @@ Heal.prototype.GetTimers = function()
{
return {
"prepare": 1000,
"repeat": GetRate()
"repeat": this.GetRate()
};
};
@ -84,7 +84,7 @@ Heal.prototype.PerformHeal = function(target)
if (!cmpHealth)
return;
let targetState = cmpHealth.Increase(GetHP());
let targetState = cmpHealth.Increase(this.GetHP());
// Add XP
let cmpLoot = Engine.QueryInterface(target, IID_Loot);