forked from 0ad/0ad
Fix missing this-reference in 9d20881ef4
and update gamesetup following a874b3c1c3
.
This was SVN commit r18492.
This commit is contained in:
parent
20866bd9d8
commit
275be69883
@ -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 })
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user