From 4f68a6ef917b92df214a12dcef09cffdfa1e80ff Mon Sep 17 00:00:00 2001 From: brianluau Date: Sat, 21 Apr 2012 08:26:58 +0000 Subject: - Fixed emperium coordinates in Payon Holy Shadow (payg_cas03). - Also enforce sd->emotionlasttime for pet emotions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15901 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index c19164d1a..c339407dc 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6177,6 +6177,13 @@ ACMD_FUNC(pettalk) ARR_FIND( 0, ARRAYLENGTH(emo), i, stricmp(message, emo[i]) == 0 ); if( i < ARRAYLENGTH(emo) ) { + if (sd->emotionlasttime + 1 >= time(NULL)) { // not more than 1 per second + sd->emotionlasttime = time(NULL); + clif_skill_fail(sd, 1, 0, 1); + return 0; + } + sd->emotionlasttime = time(NULL); + clif_emotion(&pd->bl, i); return 0; } -- cgit v1.2.3-60-g2f50