Core/Scripts: return const modifier to Player methods back (should restore compilation for those with custom scripts).

NOTE: The main idea of original change is to allow scripts change content of message so that calling method sends modified message to client.
For example, moderating script which cuts illegal words from message.

--HG--
branch : trunk
This commit is contained in:
azazel committed 2010-11-18 10:26:34 +06:00
1 parent 3de2f6af01
commit 87d723405e
5 files changed
+39 -36

No files matched your search

+1 -1
View File
@@ -5458,7 +5458,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
target = this;
if (roll_chance_i(10))
this->ToPlayer()->Say(std::string("This is Madness!"), LANG_UNIVERSAL);
this->ToPlayer()->Say("This is Madness!", LANG_UNIVERSAL); // TODO: It should be moved to database, shouldn't it?
break;
}
// Sunwell Exalted Caster Neck (??? neck)