bing2008 / VMangos-eluna

This project is a VMangos version with Eluna code merged.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H,in code TODO: 0 is magic number for "addAuraFlags"

Yuhenan opened this issue · comments

H, in code

#elif defined VMANGOS

Eluna::Push(L, unit->AddAura(spell, 0, target)); // TODO: 0 is magic number for "addAuraFlags"

I don't understand!···

I made mistakes like this "player:AddAura(35001, 0, player)"

Console display ERROR: lua_scripts/npc_TF.lua:182: bad argument #2 to 'AddAura' (bad argument : Unit expected, got number)

thank you!···

commented

You don't need to add the secend argument when using lua API, just "player:AddAura(35001, player)". see: http://elunaluaengine.github.io/Unit/AddAura.html

使用 lua API 时不需要添加 secend 参数,只需添加 “player:AddAura(35001, player)”。参见:http://elunaluaengine.github.io/Unit/AddAura.html

thank you, if "player:AddAura(35001, player)" core report errors "ERROR: (null) missing metatable" 。。。I cancel。QQQ

commented

Oh, yes you rae right! I am sorry i don't notice the error on console.

I am going to find out why...

commented

Fixed. see: 1a4fb13

固定。请参阅: 1A4FB13
Thank you very much!~